Title: Filter inputs that fail validation
Last modified: August 15, 2024

---

# Filter inputs that fail validation

 *  Resolved [La Coopérative des Internets](https://wordpress.org/support/users/coopi/)
 * (@coopi)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/filter-inputs-that-fail-validation/)
 * Hi !
 * First, thank you for this plugin. We use it on all our websites and we love it
   for the frugal and lightweight approach and because we can extend it easily for
   a lot of use case.
 * But today, I’ve got a request with i can’t food a solution.
 * I need to filter / customize inputs markup which fails validation (like an email
   input) to add CSS highlight, error message and aria attributes for accessibility
   in addition with the global error message. I search but i found nothing about
   highlighting inputs error. Is there a solution ?
 * Thank you !

Viewing 1 replies (of 1 total)

 *  Plugin Author [Link Software LLC](https://wordpress.org/support/users/linksoftware/)
 * (@linksoftware)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/filter-inputs-that-fail-validation/#post-17955123)
 * [@coopi](https://wordpress.org/support/users/coopi/) There’s not a great way 
   to do this without some effort. You could try removing the `required` attribute
   from your fields, to disable browser validation, and then write your own [custom form validation](https://htmlformsplugin.com/kb/custom-form-validation/)
   code. Or you could try [triggering a JavaScript event](https://htmlformsplugin.com/kb/javascript-events/)
   on an error to add your CSS.

Viewing 1 replies (of 1 total)

The topic ‘Filter inputs that fail validation’ is closed to new replies.

 * ![](https://ps.w.org/html-forms/assets/icon-256x256.png?rev=1754345)
 * [HTML Forms - Simple WordPress Forms Plugin](https://wordpress.org/plugins/html-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/html-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Link Software LLC](https://wordpress.org/support/users/linksoftware/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/filter-inputs-that-fail-validation/#post-17955123)
 * Status: resolved