Validations
    • PDF

    Validations

    • PDF

    Article Summary

    What are the Model Validations?

    Model validations are methods to check the integrity of the information that was input into fields while interacting with a digital process. The implementation of different validations is done by using Webflow components and data items from the Model.

    NOTE
    For further assistance in creating validations, please contact our support team.

    NOTE
    If you want to skip to our How to Videos section and quickly learn how to use the different validations, click here.

    How to Implement Validations?

    A validation is implemented on a transaction data item associated with different Webflow components, such as Text Input and Radio Question components. For example, using validations, you can check if an email address was input according to the email address format or to turn a Webflow component into a required field for inputting information.

    Validations Usage Example

    Figure 1 displays a Webflow with three Text Input components and a Radio Question component. The email information that the user needs to fill in must be checked and validated that it is written correctly according to the address structure of an email. In addition, it is mandatory to select a marital status to proceed with the Webflow:

    Figure 1: Webflow Components

    Figure 2 displays the Model of the Webflow. The Model contains four transaction data items, The email (1) and the maritalStatus (2) transaction data items need to be implemented with appropriate validations:

    Figure 2: The Model

    When clicking the Validations tab (3) an Add field appears (4) where all the existing validations are searchable according to their name (see Figure 3):

    Figure 3: Validations

    For the email transaction data item, the appropriate validation is email_eng () (5) (see Figure 4):

    Figure 4: Email Validation

    For the maritalStatus data item, the appropriate validation is required_eng () (6) (see Figure 5):

    Figure 5: Marital Status Validation

    NOTE
    When a transaction data item is implemented with a validation, the icon appears next to it.

    Each added validation can be configured (7) with a custom validation message, instead of a default validation message, which will be displayed when the input information is not valid (see Figure 6):

    Figure 6: Validation Configuration

    The Edit custom validation message window enables to override the default validation message by checking the checkbox (8) and by entering a new custom message (9) (see Figure 7):

    Figure 7: Edit custom validation message

    Figure 8 displays the validation message when the input data is not valid (10) and when required information is not filled (11):

    Figure 7: Validation messages

    Appendix - Commonly Used Validations Table

    Table 1: Validations

    Number

    Name

    Description 

    1

    required_eng

    Enables to turn a field into a required field

    2

    email_eng

    Validates an email according to the email address format

    3

    landline_eng

    Validates a landline number

    4

    cellphone_eng

    Validates a cell phone number

    5

    landlineOrCell_eng

    Validates a cell phone or landline number

    6

    futureDate_eng

    Validates that the entered date is a future date

    7

    pastDate_eng

    Validates that the entered date is a past date

    8

    numeric_eng

    Validates that the entered characters are numbers

    9

    validDate_eng

    Validates that the entered date is valid

    10

    IBANOnly_eng

    Validates that the entered IBAN is in the right format

    11

    validBic_eng

    Validates that the entered BIC is in the right format

    12

    exactLength_en

    Validates that the Input needs to be at an exact length

    13

    XDigitsAfterDot_en

    Validates that the entered number has an X number of digits after the dot

    14

    untilMaxNumber

    Validates that the entered number less than X

    15

    numberORNumberWithDot

    Validates that the entered number is a valid number, or a valid decimal number 

    16

    idNumber

    Validates that the entered ID number is valid according to the format

    17

    noNumber

    Validates that the entered characters are not numbers

    18

    minNumChars

    Validates that there are at least X amount of entered characters

    19

    maxNumChars

    Validates that there are no more than X amount of entered characters

    20

    validYear

    Validates that the entered year is valid

    21

    pastYear

    Validates that the entered year is a past year

    22

    Date_of_claim

    Validates that the claim date is prior to the policy Date of commencement

    How to Videos

    To quickly learn how to use validations, watch the following videos:

    • Exact Number of Characters: 

    • Maximum Number of Characters:

    • Email:

    • Only Letters:

    • Only Numbers:

    • Past Date:

    • Minimum Number of Characters:

    • Required Fields:

    • Valid Date:

    • Future Date:


    Was this article helpful?

    What's Next