This documentation page is for Quform version 1 and may not be applicable for Quform 2 click here to visit the documentation for Quform 2.

Validators

Single Line Text → Settings → Advanced

Validators prevent the form being submitted if the submitted data does not match the validator rules. See below for an explanation of what each validator does and its options.

Adding a validator

To add a validator, click the button of the validator you want to add, for example, to add the Digits validator, click the Digits button.

Removing a validator

To remove a validator, click the remove icon on the validator.

Validators

Alpha Numeric

The alpha numeric validator checks that the value contains only alphabet or digit characters.

Options
OptionDefaultDescription
Allow whitespaceuncheckedWhether to allow whitespace such as spaces and tabs

Alpha

The alpha validator checks that the value contains only alphabet characters.

Options
OptionDefaultDescription
Allow whitespaceuncheckedWhether to allow whitespace such as spaces and tabs

Digits

The digits validator checks that the value contains only digits.

Options
OptionDefaultDescription
Allow whitespaceuncheckedWhether to allow whitespace such as spaces and tabs

Email

The email validator checks that the value is a valid email address.

Greater Than

The greater than validator checks that the value is numerically greater than the given minimum.

Options
OptionDefaultDescription
Minimum0Minimum allowed value

Identical

The identical validator checks that the value is identical to the given token.

Options
OptionDefaultDescription
Token Token to match against the value

Less Than

The less than validator checks that the value is numerically less than the given maximum.

Options
OptionDefaultDescription
Maximum10Maximum allowed value

Length

The length validator checks that the length of the value is between the given maximum and minimum.

Options
OptionDefaultDescription
Minimum length0Minimum allowed length
Maximum length Maximum allowed length

Regex

The regex validator checks that the value matches the given regular expression.

Options
OptionDefaultDescription
Pattern The regular expression pattern to match
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy