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

Subforms not appearing after form is saved and reopened with corresponding selected checkboxes, which have been scripted to make

bradschomburg
Registered: Jan 11 2008
Posts: 4

I have created a form in Designer 7 and it is interactive when viewed as a PDF. Some subforms are hidden, unless triggered (via check box)to become visible. Once the form is saved, closed, and then reopened, the checked box does remain checked but the correspinding subform that the clicked check box is supposed to make visible is hidden again (this is the problem). I want the user to be able to check their boxes, have those boxes' appropriate subforms appear, save that form, and then reopen it so that they can see the subforms that had appeared originally for them when the boxes were first checked. In other words, how do I make the subforms that are scripted to be hidden unnless a corresponding clicked checkbox makes it visible REMAIN VISIBLE after the check box is selected, the form is saved and closed, and then reopened?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Use the "Form Ready" or "Doc Ready" events to reset the visibility of the subforms. Be careful though. These events are fired more than just when the document is opened. Create and set a varible that's attached to the top level of the form structure after resetting the subform visibility. Use this variable as a gateway to the subform visibility logic.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

bradschomburg
Registered: Jan 11 2008
Posts: 4
Hmmm. How would one go about coding that? Thanks for taking an interest in this question!!
bradschomburg
Registered: Jan 11 2008
Posts: 4
Nevermind - I got it!!

Thanks!