HomeGuidesRecipesAPI
HomeGuidesAPILog In
Guides
These docs are for v10. Click to read the latest docs for v31.

Validator - Question Type

Overview

A Validator question can validate the responses of other questions.

315

In Design, you can define any number of "comparisons" on other questions, much like you would with Conditions. If these "comparisons" fail, then an error message will be displayed on the form.

Each "comparison" is made up of the following pieces:

MessageType in the Message you want to display.
QuestionA reference to another question/answer on the form to check
TypeOptions are:
Compare
Field Length
Regular Expression

Compare - The options for this property will change based on the "Type" selected. It gives you the options available for your comparison. A "Field Length" type only has Minimum field length and Maximum field length; whereas a "Compare" comparison has a number of options.

Field Length - A "Field Length" type comparison checks the actual length of the entered value. For example, it could be used to check that a "Name" field is less than 50 characters long.

* Regular Expression - Use a "Regular Expression" type comparison to validate that the value of a reference question/answer matches an entered regular expression. For example, it could be used to check that a value is a valid email address.
ComparisonThe options for this are:
Greater Than
Greater Than or Equals
Less Than
Less Than or Equals
Equals
Not Equal To
Begins With
Ends With
Contains
Doesn't Contain
ExpressionType in the text that you are wanting to validate against.
AddOnce all the settings are correct, use the Add button to add it to the validation box.
UpdateIf you make changes to existing settings you can select update to keep the changes.
RemoveIf you want to remove an existing validation, select it in the box and choose Remove.
195

The validation box has multiple options.

CopyThis allows you to copy any entry
ReplaceThis allows you to replace any entry with the copied text
Move up to next groupThis will allow you to move an item up to the next group
Move down to next groupThis will allow you to move an item down to the next group
Create "All of" groupThis creates an "All of" group that you can add items to
Create "Any of" groupThis creates an "Any of" group that you can add items to
Convert "All of" or "Any of" groups to another stateThis allows you to change either group to the other existing group
RemoveThis allows you to select and remove an item