cancel
Showing results for 
Search instead for 
Did you mean: 

About Buttons and Subforms

Former Member
0 Kudos

Hi friends,

in my form iam having 2 Push Buttons and 2 Subforms.

when i click on one Button, First subform should be displayed and when i click on the Second Button, another Subfrom should be Displayed.

Can any one Explain how to do this concept.

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

Sripathi,

Lets say you have 3 Subforms viz Subform0 (containing two buttons Button1 & Button2) and Subform1, Subform2.

On form:ready event of Subform0 have the following code:-

Subform0.presence = "visible";
Subform1.presence = "hidden";
Subform2.presence = "hidden";

On click event of Button1 change the language to JavaScript and add following code:-

xfa.host.messageBox("Button1 Clicked");
Subform1.presence = "visible"
Subform2.presence = "hidden"

Make the subform2 visible by writing similar code on click event for button2.

This is what i could think of or may be some has better solution than me.

Chintan

Former Member
0 Kudos

Thanks Chintan,

Can u send the Material,

when to use the respective event,

iam learning the adobe forms my self.

iam not getting the correct material.

iam reading the adobe live cycle designer Help.

some times iam not getting the exact out put

what i want.

plz help me if u have any mateirals

sankar_narayana
Active Participant
0 Kudos

Adding a small point to this concept.

When you are making changes to the Form Presence then that form should be dynamic. Other wise the changes what you have done will not be reflected.

For ex:- this.presence ="hidden";

Then in this case form should be dynamic.

Answers (0)