Topic cluster

Forms

Collecting validating and processing structured user input.

View topic page

8 items

The remaining keywords do not make a useful further split. All matching documentation is listed below.

Validators

acceptance

Check if an input value evaluates to true.

Validators

custom

Support for custom client-side (JavaScript-based) validators.

Validators

postback

Performs a custom server side validation of an input value. This allows you to add your own validation logic to HTML form fields.

Validators

presence

Check if an input has been filled in or checked.

Scomp

validate

The validator tag accepts the following arguments:

Developer guide

Validate a form on both sides

Use semantic form controls with labels and meaningful names. Add Zotonic validators for immediate feedback, then validate the submitted values again at the server boundary.

Actions

validation_error

Render a validation error on the target. Text is given in the text argument.