How to add custom validation to a field?
To add custom validation to a field in your form, follow these steps:
Log in to your account and access the forms section.
Locate the specific form you want to edit and click on it.
Find the field that requires custom validation and click on the settings icon.
Scroll down to the custom validation section on the right side of the screen.
Choose the desired validation criteria from options like equals, does not equal, contains, does not contain, starts with, ends with, is empty, is not empty, content length equals, content length does not equal, content length greater than, content length greater than or equal to, content length less than, and content length less than or equal to.
Configure the conditions based on the criteria you selected.
Optionally, provide an error message that will appear if the condition is not met.
Publish the form and thoroughly test the custom validation.
Remember to save the form after making any changes.
In an example scenario, if the email address does not end with "@test.com", the user will see an error message stating "This is an invalid email address" and will not be able to submit the form.
Make sure to save the form before testing the custom validation feature.
Log in to your account and access the forms section.
Locate the specific form you want to edit and click on it.
Find the field that requires custom validation and click on the settings icon.
Scroll down to the custom validation section on the right side of the screen.
Choose the desired validation criteria from options like equals, does not equal, contains, does not contain, starts with, ends with, is empty, is not empty, content length equals, content length does not equal, content length greater than, content length greater than or equal to, content length less than, and content length less than or equal to.
Configure the conditions based on the criteria you selected.
Optionally, provide an error message that will appear if the condition is not met.
Publish the form and thoroughly test the custom validation.
Remember to save the form after making any changes.
In an example scenario, if the email address does not end with "@test.com", the user will see an error message stating "This is an invalid email address" and will not be able to submit the form.
Make sure to save the form before testing the custom validation feature.
Updated on: 17/06/2024
Thank you!