Highlight fields in error

  • 12 August 2015
  • 4 replies
  • 682 views

Hello,

We would like to highlight fields in error (or valid) on our form. Is it possible ? We add style to error form but on form directly we don’t see how to.

Thank you for your help.

Cheers,
Y


4 replies

That’s an interesting idea!  Currently the error message shows parallel to the form, but I can see how highlighting the individual field makes correcting the error even more thoughtless for the prospect. 

Tip of the cap,

Joe

Hi Y,

Yes it’s possible, please take a look at the video on this page and let me know if it’s the kind of thing you’re after. If it is then I’m happy to help you get it working. 

http://jqueryvalidation.org/

Cheers

Stuart.

Hi Stuart,

Thank you for your reply.

It’s exactly what we are looking for (the highlight effect on fields like in the video).

By chance, do you have a sample of code working please ? I knew the possibility of doing it with a jQuery plugin / development. The problem is to get a working code (depending of field id / name, the fact that the form has been submit with error…).

Cheers,

Y.

Still looking for an answer 🙂

Cheers,

Y

Reply