These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Message to appear if not all fields completed in Acrobat 5

Kelly Hill
Registered: Nov 26 2010
Posts: 2

Hi
 
I have a form which has text boxes and a combo box which must be completed. We are not submitting the form via email or anything, the form will just be completed saved and printed by the user.
 
My idea is to have a text field which is visible and says "* complete all required fields", but it becomes hidden once all the text fields have something entered in them and the combo box has something selected.
 
What script do I need to enter for my disappearing text box?
 
Many thanks
 
Kelly
 

My Product Information:
Acrobat Standard 5.x or older, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
You could set up a script in the Calculate event of the disappearing text box that checks the various field values, and if everything is OK, hides itself. If you provide more details, such as field names, someone might suggest some specific code you can use.
Kelly Hill
Registered: Nov 26 2010
Posts: 2
Thanks George.

Text fields are called Date, OurRef, YourRef, IssueDate & BaseDate.
My combo field is called TypeBaseDate.

At the moment my combo field has a blank option as well as the choices that I want my users to select from, any choice other than the blank choice is ok. I did see someone suggest not having a blank choice, and just not selecting a default option, but I can't seem to get that to happen.

I've tried writing script to export values of 1 or 0 to other fields - thinking I could then do a simple total and write some script for the disappearing field, like if total is 5 hide field. However I couldn't get that to work. I am not great at java script and tend to use the same simple scripts all the time, so when I try something new it doesn't always work.

If anyone could write the script for me that would be fantastic.

cheers