Data Validation using Smart Tips
- 1 Minute To Read
-
Print
-
DarkLight
Smart Tips can help you validate user input. If the user input has to be in a particular format and the data that is entered is not compliant, Whatfix enables you to trigger a message that gives real-time feedback on the information entered before the form is submitted. The validation feature can be used along with or without displaying a smart tip.
Example:
Smart Tip on a Phone Number field that displays an error message when the value is not numeric and not exactly 10 characters.
To add data validation using Smart Tips,
-
On the Whatfix editor, click Smart Tips.
-
Enter a name for the Smart Tip Collection.
-
Click the + Tip button.
-
Select an element on the application that you would like to add the Validation to.
-
Select Only Validation.
-
Select the Data Validation Rules.
-
To add multiple rules, click the plus icon.
-
Enter the error message that is to be displayed if the validation fails.
-
Click Add Tip.
-
To add additional data validations, click + Tip on the editor and repeat the steps 4 to 8.
-
After all the data validation tips are created, click Maximize on the Whatfix toolbar.
-
Click the Save button.
Custom validation requirements can now be handled via the Validation API.
- Signature of the API is :
function onValidate ( event )
Contact support@whatfix.com for more details about the Validation API.
- The validations can additionally have multiple rules with AND/ OR Conditions between them.
- An error message is mandatory if validation rules are configured.
- The validation does not work when no data is entered in the text box.
- API validation within the scope of an iFrame is NOT supported.
- Locale/language based error message over-rides need to be handled in the code.