Highlight manadatory fields AFTER submit button is pressed?

O

OMAF-Terry

I would like to wait until the submit button is clicked as 80% of the fields
on the form are mandatory. It's visually distracting with all the red
outlines around each mandatory field.

Is it possible to highlight the empty mandatory fields once the submit
button is clicked?
 
A

Agni

Yes it is possible. Maintain a secondary dom variable which will be set to
true once submit button is clicked. Now when you validate your values put a
condition before the validation to check whether the secondary dom value is
true or not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top