Title: Forminator custom validation
Last modified: October 2, 2023

---

# Forminator custom validation

 *  Resolved [broadsighted](https://wordpress.org/support/users/broadsighted/)
 * (@broadsighted)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/forminator-custom-validation/)
 * Hello, how can I configure Forminator to throw an error when certain strings 
   of text are input? For example:
    - If Name field contains “@”
    - If Email field contains “mailinator”
    - If a textarea field contains “lorem ipsum”

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Olumide Akintunde](https://wordpress.org/support/users/olumide22/)
 * (@olumide22)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/forminator-custom-validation/#post-17095087)
 * Hi@broadsighted
 * I hope you are doing great today. The validation feature(s) you are requesting
   for is not currently available on the latest version of Forminator plugin. However,
   this might be achievable with custom code. The support team will reach out to
   you on that soon(if that’s achievable).
 * kind regards, 
   Olumide Akintunde
    -  This reply was modified 2 years, 8 months ago by [Olumide Akintunde](https://wordpress.org/support/users/olumide22/).
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/forminator-custom-validation/#post-17096198)
 * Hi [@broadsighted](https://wordpress.org/support/users/broadsighted/)
 * I hope you’re well today!
 * You can use combination of additional HTML fields and custom visibility rules
   for that.
 * Let me describe example for the name field, let’s say it’s “name-1” field:
 * 1. add a HTML field directly below or above that name field
    2. put your error
   message in the HTML field 3. set “Visiblity” rule for that HTML field as follows
 * “Show this field if all of the following rules match”
 * and add condition
 * Field: name-1 (_choose your name field to be checked here_)
    Condition: Contains
   Value: @
 * 4. apply changes
    5 now click on the “Submit” fiedl and switch to its “Visibility”
   settings 6. set rule as follows:
 * Hide this field if Any of the following rules match
 * and add condition
 * Field: name-1 (_again, select your name fiedl_)
    Condition: contains Value: @
 * 7. apply changes, update the form
 * And that’s it. If you put @ character in name fiedl the HTML field will become
   visible showing your custom error message and “Submit” button will get hidden,
   making it impossible to submit the form.
 * You can do the same with other fields on the form.
 * I also created an example form for you so you could see how it works. You’ll 
   find it here
 * [https://pastebin.com/qg4zj1nj](https://pastebin.com/qg4zj1nj)
 * so you can import it to your site, test and see how it’s configured exactly.
 * Best regards,
    Adam
 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/forminator-custom-validation/#post-17120568)
 * Hi [@broadsighted](https://wordpress.org/support/users/broadsighted/),
 * We haven’t received any updates from you recently. I will mark this thread resolved
   for now. If you have any more questions or need further assistance, please feel
   free to reach out to us anytime!
 * Kind Regards,
    Nebu John

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Forminator custom validation’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/forminator-custom-validation/#post-17120568)
 * Status: resolved