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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.

Avatar

03-03-2009

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.