diff --git a/packages/noco-docs/docs/090.views/040.view-types/030.form.md b/packages/noco-docs/docs/090.views/040.view-types/030.form.md index cb0db7cb4f..292a3a0863 100644 --- a/packages/noco-docs/docs/090.views/040.view-types/030.form.md +++ b/packages/noco-docs/docs/090.views/040.view-types/030.form.md @@ -95,6 +95,29 @@ To change the field label displayed on the form & add help-text, click on the re Formatting options are supported for the `Help Text` field. You can also use Markdown to format the text. ::: +### Field Validations +NocoDB allows you to configure input data validations for fields in the form. To configure field validation, click on the required field in the **Form Area**, and in the right configuration panel, configure the desired validations. Supported validations are type-specific and are listed below. + +:::info +- Validation rules for fields are only applied when input fields are not empty. Set *Required* to enforce these validation rules and ensure that the field cannot be left blank. +- The form cannot be submitted if the validation rules are not met. +- Utilize help text to offer additional information about the field and its associated validation rules. +::: + +#### Text-based Field Types +For text-based field types (`Single Line Text`, `Email`, `Phone`, `URL`, `Long Text`, `Rich Text`), you can configure the following validations: +- **Minimum Length**: Specifies the minimum number of characters required for the field. +- **Maximum Length**: Specifies the maximum number of characters allowed for the field. +- **Pattern**: Allows you to define a regular expression pattern that the field value must match. + +#### Numeric Field Types +- **Required**: Ensures that the field cannot be left blank. +- **Min Value**: Specifies the minimum numeric value allowed for the field. +- **Max Value**: Specifies the maximum numeric value allowed for the field. + +#### Select-based Field Types +- **Required**: Ensures that at least one option is selected. + ### Field Type Specific Settings For select based field types (`Single-Select`, `Multi-Select`, `User`), you can configure the following additional settings: