Articles on: Working with NoteForms

How to add custom validation to a field?

To add custom validation to a field, follow these steps:

Login to your account.
Navigate to the forms section.
Select the form that you want to edit.
Locate the field that requires custom validation and click on the settings icon.
On the right side of the screen, scroll down to find the custom validation section.
Choose from a range of criteria such as 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.
Set the required condition based on your validation needs.
Optionally, add a message that will be displayed if the condition is not met.
Publish the form and conduct testing to ensure the custom validation is working as intended.
Remember to save the form after making any changes.

Watch the video below for an example where an email address that does not end with "@test.com" triggers the message "This is an invalid email address," preventing form submission.






Note: Custom validation allows you to create specific rules tailored to your form's requirements.

Updated on: 17/06/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!