Skip to main content
User account menu
Show — User account menu
Hide — User account menu
Log in
Arr Logo
CYC Racing
CYC Race Menu
Show — CYC Race Menu
Hide — CYC Race Menu
Race Home
Current Races
Past Results
Scoring Inquiry
COVID instructions
CYC Home
Breadcrumb
Home
Form API Examples
Modal form
Modal form
This example demonstrates a form that can work as a normal multi-request form, or as a modal dialog using AJAX.
In order to show a modal dialog by clicking on a link, that link has to have class
use-ajax
and
data-dialog-type="modal"
. This link has those attributes.
See this form as a modal.
Title