2.26 Create New Validation

You can create a validation when needed. Validations are defined to validate the answers given by a user at the time of registration.

To create a validation, perform the following steps:

  1. Click the Application Navigation hamburger menu on top-left and click Configure Security Questions.
  2. From the Top Questions panel, click the View All Validations link.
  3. Click Create New Validation.

    The Validations page appears where you can enter details to create a validation.

    Note:

    The fields displayed on the Validations page depends on the validation type selected from the Select Validation Type list.

Validations

Elements Description
Select Validation Type From the Select Validation Type list, select the validation type you want to add.
Name Specify the name for this instance of the validation.
Validation Parameter Specify the validation parameter that corresponds to your validation type. For example, validation parameter Enter Maximum Length can be 30 for an instance of Maximum Length validation type. This validation instance restricts the user from entering an answer longer than 30 characters in length. Following validation parameters are supported for respective validation type: Repeated Character, Inappropriate Language, Minimum Length, Maximum Length, Repeated Answers, Date, Regular Expression, Character.

To learn more about the validation parameters, see the following table.

Error Message Specify an error message for this instance of validation.

Validation Parameters

Validation Type Description Example
Repeated Character Allowed number of repeated characters in the answer.

If the answer entered by the user contains repeated characters more than the configured value, the validation fails and the user gets a configured error message.

3
Inappropriate Language Inappropriate language for answer. Sloppy,Wrong,Yucky

The list of words should not contain blank spaces.

Minimum Length Minimum length (number) for the answer.

If the length of the answer entered by the user is less than the configured value, the validation fails and a configured error message is displayed.

4
Maximum Length Maximum allowed length (number) for the answer.

If length of the answer entered by the user is above the configured value, the validation fails and a configured error message is displayed.

4
Repeated Answers Allowed number of repeated answers.

For example parameter value can be '1' for unique answer validation.

If the answer entered by the user is repeated more than configured number of times, the validation fails and the user gets a configured error message.

1
Date Date/Time pattern string for the answer.

For example, the pattern can be "MMddyy" for Month Day Year validation.

If the date/time answer entered by the user is not as per the configured pattern, the validation fails and a configured error message is displayed.

MMDDYY
Regular Expression Real expression pattern string for the answer.

For example, pattern can be "[A-Za-z0-9]+" for Alpha-numeric validation.

If the answer entered by the user is not as per the configured regular expression pattern; then, the validation fails and a configured error message is displayed.

[0-9]+
Character Characters that are allowed. *