This example demonstrates how to dynamically add fieldsets to a form.
-
The JavaScript function Click.submit(form, validate) is set as
the Select onchange handler. Changing the select option will
submit the form, but bypass form validation.
-
The utility method ClickUtils.bind(Form) is used to bind
and inspect the Select value before the page onProcess event.
-
If the selected value is "Property" an address fieldset is added to the form.
If the selected value is "Stocks" an amount field is added to the form.
$dynamicForm
#if ($msg)
$msg
#end