Expand my Community achievements bar.

Empty Message does not work

Avatar

Former Community Member
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
2 Replies

Avatar

Former Community Member
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

Former Community Member
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.