Define a validation rule for multi-choice questions

For drop-down questions or questions with checkboxes, you can specify the number of options that users must select, or require users to choose a given option.

For example, the Select Exactly validation rule is configured for questions that must be used in defining a minimization design or enrollment limit.

If needed, you can define more than one validation rule for a drop-down question or a question with checkboxes. Repeat the steps to add new rules as required and, once you have added the new rules, select a logical operator from the drop-down between rules:
  • If you select AND, the value must be valid for every validation rule.
  • If you select OR, the value must be valid for exactly one validation rule.
  1. Go to the Rules sidepanel as described in Access the Rules section.
  2. Select Add Rule and then select one of the following validation rules:
    Validation rule type Description
    Select at Least A site user must select at least the configured number of answer options.
    Select at Most A site user must select a maximum of answer options.
    Select Exactly A site user must select exactly the configured number of answer options.
    Answer Must Be A site user must select exactly the configured answer options.
    A Validation Rule dialog appears.
    Screen shot of the settings for a Date/Time validation rule.
  3. To continue configuring the validation rule, choose the answer options that a user must select:
    Option Description
    For rules of the following type:
    • Select at Least
    • Select at Most
    • Select Exactly
    Set a number to define the amount of options allowed to be selected by the site user.
    For rules of the following type:
    • Answer Must Be
    Set the exact Required Answer to be selected by the site user.
  4. In the Error Message field, enter an error message that should appear for site users when the answer is invalid.