Form validation

Forms validate fields automatically when a schema is assigned. Validation rules come from the linked table constraints.

Validate form action

Forms created in Autogenerated screens already include a Validate Form action on the Save button.

To add it manually, choose Validate Form from the action list and select the target form from the dropdown.

Use this action first in a button action chain so invalid forms stop before any save or submit action runs.

📘

Form steps

Validation only applies to the currently displayed form step.

Custom validation rules

Use custom validation when you need:

  1. A custom Form Schema
  2. Regex pattern matching
  3. A Binding in the validation condition
  4. A custom violation message

To add a custom rule, open the field settings and click Configure validation.

Regex

Use regex rules when you need pattern-based validation, such as allowing only letters and spaces.

Conditional validation rules

You can also change validation rules with Conditional UI.

Add a condition to the field, choose Update setting, then Validation, and define when the rule should apply. When the condition no longer matches, Budibase removes that validation rule.

Related pages


Did this page help you?