This example demonstrates how to dynamically add fields to a form.
-
The JavaScript function Click.submit(form, validate) is set as
the checkbox onclick handler. Clicking the checkbox will submit
the form, but bypass form validation.
-
The utility method ClickUtils.bind(Control) is used to bind
and inspect the checkbox value before the page onProcess event.
-
If the checkbox is checked, the email field is added to the form
$dynamicForm
#if ($msg)
$msg
#end