You are viewing limited content. For full access, please sign in.

Question

Question

Forms CSS/Java - prevent "Value is Required" from appearing below fields in forms

asked on October 1, 2018

Can anyone provide me with the correct java or css (I'm assuming it's Java) that would prevent the "Value is Required" text from appearing below required fields when they are empty and instead just highlight the field red?  

0 0

Answer

SELECTED ANSWER
replied on October 1, 2018

JavaScript would be for browsers, not Java, but you shouldn't need it for this anyway smiley

Try this CSS

.parsley-required {
    display: none;
}

The downside is that with File Uploads, for example, there's no red border so removing the message means there's no indication of the problem.

1 0
replied on October 1, 2018

Worked perfectly!  Thank you!

0 0

Replies

replied on October 1, 2018

Ok thanks!  I'll give it a try!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.