>
What will I learn?
Form controllers
What are Form controllers?
Form controllers are customizable actions performed during form submission, adding, or updating input in a form field of Widgets. The form controller consists of handlers that perform various functions based on the user's preference.
Handlers in Form controllers
- Submit handler - The submit handler is triggered on the form's submission. Data collected in the form will be available in the Submit Handler.
- Dynamic field handler - The handler auto-populates the drop-down menu items for the field based on the users' search query.
- Change handler - The change handler can either add or remove fields in the form depending on the input made for a specific field.