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
BedrockMission!

Learn More

View all

Sign in to view all badges

Empty Message does not work

Avatar

12-06-2008

I have a couple of text fields that I have set to mandatory by selecting "User Entered -Required".



Whilst using an submit button it will display the generic Adobe message "at least one field is blank ...".



So what I do is add some text into the Empty Message field thinking that Adobe will prompt the user that the field is empty and display the message within the Empty Message field. But regardless of what I do it only shows the generic message.



I am stumped and am trying to figure what I have left out or am missing.



Any suggestions please?



Thanks, Jim

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

18-06-2008

Sorry for the delay in posting a reply but I have been researching your issue. I have been able to duplicate it. In doing my research I did find that if I programmatically force a validation then the desired error message is displayed. So while I am tracking down engineers to see why they do it this way I can suggest a work around.



If you make your actual submit button invisible, then put a second normal button on the form (making sure it is visible). This is the button that the user will see and use for submission. On the click event of the button, you will want to force the firing of the validate events and if they come back false then cause the submit to happen. Your javascript code will look something like this:



if (TextFieldName.rawValue == "" || TextFieldName.rawValue == null){

form1.execValidate();

} else {

SubmitButtonName.execEvent("click");

}



Once I hear back from engineering I will post the result.

Avatar

18-06-2008

Thanks Paul.



I will eagerly wait for your response.



The work around you suggested is not feasible for us as we can potentially have 50+ form fields.