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 stepsValidation only applies to the currently displayed form step.
Custom validation rules
Use custom validation when you need:
- A custom Form Schema
- Regex pattern matching
- A Binding in the validation condition
- 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
Updated 16 days ago