The up.form
module helps you work with non-trivial forms.
Submits this form via JavaScript and updates a fragment with the server response.
Renders a new form state when a field changes, to show validation errors or update dependent fields.
Show or hide elements when a form field is set to a given value.
Automatically submits a form when a field changes.
Watches form fields and runs a callback when a value changes.
Automatically submits a form when a field changes.
Automatically submits a form when a field changes.
Marks this element as a from group, which (usually) contains a label, input and error message.
Sets default options for form submission and validation.
Returns a list of form fields within the given element.
Returns the form group for the given element.
Marks this element as a from group, which (usually) contains a label, input and error message.
Returns whether the given element is a form field, such as input
or select
.
Returns whether the given form will be submitted through Unpoly instead of making a full page load.
This event is emitted when a form is submitted through Unpoly.
Returns a list of submit buttons within the given element.
Parses the render options that would be used to submit the given form, but does not render.
This event is emitted before a form is being validated.
Hides this element if an input field with [up-switch]
has one of the given values.
Watches form fields and runs a callback when a value changes.
Observes form fields and runs a callback when a value changes.
Only shows this element if an input field with [up-switch]
has one of the given values.
Submits a form via AJAX and updates a page fragment with the response.
Submits this form via JavaScript and updates a fragment with the server response.
Show or hide elements when a form field is set to a given value.
Render a new form state from its current field values, to show validation errors or update dependent fields.
Renders a new form state when a field changes, to show validation errors or update dependent fields.
Watches form fields and runs a callback when a value changes.
Watches form fields and runs a callback when a value changes.