I have been working on a PDF form using Acrobat 9 Pro. The form will not be submitted with a submit button but rather filled out and saved by the user.
The correct popup message appears when you leave the first field without filling it out and click into another field but I want the user not to be able to even click into another required field until they fill out the one they clicked into first.
Here is the script I am using:
f = getField(event.target.name)
if (f.value.length == 0)
//Optional Message - Comment out the next line to remove
app.alert("This field is required. ")
Thank you for your feedback. I understand what you are saying. However, this is a task handed down from management. I have already made my case for good usability with pros and cons of these specs (trying not to make the fields forced) but in the end they want what they want *sigh*
I tried your script. The popup message "This field is required" will not go away when I click from one required field (without filling it out) into another blank required field. I keep hitting "okay" on the popup but it just stays there. So, I have to do a "force quit" to get out of it.
Thanks so much for taking the time to try and help.
Definitely an issue here. I have been researching this for a few days now and see others who have the same on-going problem. Even the code that Adobe provides in their Developer Tips does not work unless you Preview in Acrobat. Does not work in Reader on Mac or Windows.
Europe, Middle East and Africa