Articles on: Working with OpnForm

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.
Click on the validation tab from 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.







Make sure to save the form before testing the custom validation feature.

Updated on: 20/10/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!