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

Display checkbox readonly validation

sogah87
Registered: Jun 4 2009
Posts: 4

Hi I am a fairly new to javascript and editing forms, I am using acrobat professional 8.

My problem is that I want a user to fill out a page on a form and if all the required fields are filled in, I want a Checked-check box to be displayed in the upper right hand corner of that page. Marking that page complete.

Additionally if the user were to go back to that page and delete information in a required field the check box would disappear marking that page incomplete. If someone could please provide come code with instructions on how to implement it, I would greatly appreciate it.

My Product Information:
Acrobat Pro 8.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You can create a check box field and set the field to be hidden. For each required field you will need a script or called document level function that checks to see if all the required fields are completed and if complete with set the check box to be checked and visible. The most direct method would be to write a function that returns a 'true' value when all required fields are complete and 'false' when they are not and then use this returned value to take the necessary action to check and display the check box or uncheck and hide it.

George Kaiser

sogah87
Registered: Jun 4 2009
Posts: 4
thank you for your input. Is it possible for you to provide the code on how to display/hide the check box script for 1 or 2 fields then I can replicate it across my whole document.

Also, how will the script work if a user types into a field and the check box is displayed but then the user deletes their input. The check box needs to disappear. Basically the check box needs to be dynamic and always check for required fields.