HELP
 / 
Content Blocks
 / 
Validation Block

Validation Block

This is some text inside of a div block.

Use the Validation block in the App Design to prevent or warn the end user from entering Invalid or Duplicate Inputs.

Editing The Block

Click on the Validation block. A Right Panel for editing appears on the right side. Start editing the fields from the Right Panel.

Description

Description is positioned below the coloured block which further explains to the end user about the Validation Message that appears before submitting the data. Description is an optional field.

Type of Validation

1. Duplicate

Duplicate Validation option allows the end user to enter unique data each time. The end user can input any data only once and cannot input the same data again.

Example:

Condition: Phone Numbers must be unique and should not be repeated inputs

Select Type of Validation: Duplicate

Select Fields: Phone Number

Select Validation Level: Error (Red Coloured Box)

Input Validation Message: Phone Number Already Entered! Enter Another Number

This is how it will look to the end user during submission:

1. The end user enters the Phone Number as: “9876543210” and submits.

This is how it will look to the end user during submission:

2. The end user clicks “Submit Another” for another Input.  The user enters the same number: “9876543210”.

Now the Validation block appears with the Validation message, “Phone Number Already Entered! Enter Another” and blocks the submission of the data.


The desired condition is proved to be true. A Phone Number can only be entered once and hence Duplication of Data is prevented.

Select Fields

This field is visible only when Type of validation - Duplicate  is selected. This field allows the App Designer to choose an Input Block to check for Duplicate submissions when the end user inputs the data

Considering the above example, the Phone Number block is the selected input block to check for Duplicate submissions and hence the end user will not be able to enter a phone number more than once.

Validation Level

Validation Level depends on whether or not the desired condition is met.

There are 3 levels of Validation: Error, Warning, Success

Error - Validation Message is displayed in a Red coloured box signifying error in the input data and the end user cannot submit the data since the submissions are blocked.

Warning - Validation Message is displayed in a Yellow coloured box signifying error in the input data and the end user can edit the input data & submit. Submissions are not blocked.

Success - Validation Message is displayed in a Green coloured box signifying no error and the end user can submit the data. Submissions are not blocked.

Validation Message

Validation Message appears when the desired condition becomes true.

Validation Message is editable and can be customized according to the user requirements.

Validation Block - Custom Validation

2. Custom

Custom Validation option allows the end user to validate the inputs entered in the current submission.



Example:


Condition: A User has to Rate an Outlet for the following factors on Rating Block:

Ease of Entry/Exit

Cleanliness

Employee Behaviour

The Calculation & Logic Block Represents the Overall Rating Corresponding to the Appropriate Formula which calculates the Average of the Three Ratings.

Formula

The Formula to calculate Average: Type @variable name to get the Variables

(@cleanliness + @ease_of_en + @employee_b)/3

Custom Validation 1:


If the Overall Rating turns out to be greater than or equal to 4 then the Validation Level selected is Green Coloured Box which is set to Display ‘Awesome’.

Select Type of Validation: Custom

Input Validation Condition: @overall_ra>=4 (@variable name should be typed and selected)

Select Validation Level: Success (Green Coloured Box)

Input Validation Message: Awesome

This is how it will look to the end user during submission:

Ratings:

Ease of Entry: 5

Cleanliness: 4

Employee Behaviour: 4

So the Average calculated will be 4.33 which is greater than 4.

The condition is true and Green Coloured Box with 'Awesome' is displayed.


Custom Validation 2:

If the Overall Rating turns out to be greater than or equal to 3 and less than 4 then the Validation Level selected is Orange Coloured Box and is set to Display ‘Average Score’.

Select Type of Validation: Custom

Input Validation Condition: AND(@overall_ra>=3, @overall_ra<4)(@variable name should be typed and selected)

Select Validation Level: Warning (Yellow Coloured Box)

Input Validation Message: Average Score

This is how it will look to the end user during submission:

Ratings:

Ease of Entry: 4

Cleanliness: 3

Employee Behaviour: 4

So the Average calculated will be 3.66 which is greater than or equal to 3 and less than 4.

The condition is true and Yellow Coloured Box with 'Average Score' is displayed.

Custom Validation 3:

If the Overall Rating turns out to be less than 3 then the Validation Level selected is Red Coloured Box and is set to Display ‘Poor Score’.

Select Type of Validation: Custom

Input Validation Condition: @overall_ra<3 (@variable name should be typed and selected)

Select Validation Level: Error (Red Coloured Box)

Input Validation Message: Poor Score

This is how it will look to the end user during submission:

Ratings:

Ease of Entry: 3

Cleanliness: 2

Employee Behaviour: 3

So the Average calculated will be 2.66 which is less than 3.

The condition is true and Red Coloured Box with 'Poor Score' is displayed.