Skip to main content

Validation Settings

Validation settings allow you to define rules that ensure the data entered by users meets your requirements. These settings help maintain data quality and prevent submission of incomplete or invalid information.

Common Validation Settings

  • Required: Makes the field mandatory
  • Unique: Ensures the value is unique across submissions
  • Minimum/Maximum Length: Character limits for text fields
  • Minimum/Maximum Value: Numeric limits for number fields
  • Regular Expression Pattern: Custom validation pattern
  • Custom Error Message: Message displayed when validation fails

Required

The Required setting makes a field mandatory. When enabled:

  • Users must provide a value for the field
  • The form cannot be submitted until a value is provided
  • A validation error is displayed if the user attempts to submit without a value

Unique

The Unique setting ensures that the value entered in the field is unique across all submissions. This is useful for fields like:

  • User IDs
  • Serial numbers
  • Registration codes
  • Email addresses (when used as identifiers)

Minimum/Maximum Length

For text-based fields, you can set minimum and maximum character limits:

  • Minimum Length: The fewest characters allowed
  • Maximum Length: The most characters allowed

These settings help ensure that text entries are neither too short nor too long.

Minimum/Maximum Value

For numeric fields, you can set minimum and maximum value limits:

  • Minimum Value: The smallest number allowed
  • Maximum Value: The largest number allowed

These settings help ensure that numeric entries fall within an acceptable range.

Regular Expression Pattern

The Regular Expression Pattern setting allows you to define a custom validation pattern using regular expressions. This provides powerful, flexible validation for complex formats such as:

  • Phone numbers
  • Postal codes
  • Product codes
  • Custom ID formats

Custom Error Message

The Custom Error Message setting allows you to define a specific message that is displayed when validation fails. A clear, helpful error message can guide users to correct their input and improve the form completion experience.