Highlighted

Validating Fields

Avatar

03-03-2009

The first field on my form is a required text field. When I Preview PDF and hit the submit button I get the default error message.

I would like the form to display the Empty Message instead. How do I do that. JavaScript?

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

03-03-2009

The empty message field doesn't work as you expect. The empty field message will only be displayed if you enter data into the field - leave it, then come back and remove the data. Then your message will be displayed. Otherwise the validation message will be displayed.
Highlighted

Avatar

03-03-2009

If I want a message to display when the user clicks submit, I need to write JavaScript to handle that?
Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

03-03-2009

You can write script on the validate event of the field and if you return true or false the message will appear but I think the generic message will always appear whether there is 1 field validation problem or more than 1.