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
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.
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.
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.