Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Validating Fields

Not applicable
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?
3 Replies
pguerett
Level 10
Level 10
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.
Not applicable
If I want a message to display when the user clicks submit, I need to write JavaScript to handle that?
pguerett
Level 10
Level 10
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.