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

Show and hide subforms

lonestartech
Registered: Sep 10 2007
Posts: 5

I am working on a form using lifecycle designer 8.1 and I want to be able to have the user click a button to show a subform and the form must be able to be compatable with acrobat 7 reader.

My Product Information:
LiveCycle Designer, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Here's an example you can modify. It works with a change event from a check box. It will not work in Reader 7 so I suggest you include a version check JavaScript as a doc open action.

if (this.rawValue == 1){
mailingStreetAddress.presence = "visible";
mailingCity.presence = "visible";
mailingState.presence = "visible";
mailingZIPCode.presence = "visible";
}else{
mailingStreetAddress.presence = "invisible";
mailingCity.presence = "invisible";
mailingState.presence = "invisible";
mailingZIPCode.presence = "invisible";
mailingStreetAddress.rawValue = "";
mailingCity.rawValue = "";
mailingState.rawValue = "NV";
mailingZIPCode.rawValue = "";

This code shows and hides the differentMailingAddress subform as the user toggles the check box on and off. You can set the initial state for the subform presence to Invisible in Design mode with the Object palette.

An example PDF can be provide upon request.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.