Jump to content
xisto Community
Sign in to follow this  
Saint_Michael

Livecycle Design Tutorial - How To Make A Subform Appear And Disappear When Two Different Checkboxes Are Selected

Recommended Posts

To make the guide simple enough.

 

I will have 4 checkboxes and number them 1, 2, 3, 4

 

Posted Image

 

Next, you add in a subform by going to Insert > Standard > Subform.

 

Posted Image

 

For tutorial sakes and testing purposes I will put in a blank textbox to make sure the process is working correctly.

 

Now, make sure you have the subform selected and in the object window, click on the subform tab and then Presence. In the drop down select invisable and this will make your subform invisable in the PDF.

 

Posted Image

 

The next step is to select your check boxes to make the sub form disappear. We will use Checkbox 1 and Checkbox 3 as the two checkboxes that will make the subform visable again and so right click on Check box 1 and section Actions.

 

Posted Image

 

In the condition column set your Checkbox to Is Checked and then hit the plus sign to add another object. Now click on the object link and select Checkbox 3 and select Is Checked. You will now notice that they are linked which means you to have both of them checked in order for the subform to appear.

 

In the result column select Show or Hide Object and then click on the object link again and this time select the Subform as the object. In the dropdown, select visable. Hit ok and now it is test time.

 

Hit the Preview PDF tab and it will open up your PDF and click on Checkbox 1, nothing should happen, now click on Checkbox 3 and your subform will appear along with the text field that is inside.

 

Posted Image

 

Now to make the subform invisable again, right click on Checkbox 1 and select Actions. This time we are going to create a new action and so click on the Icon next to the trashcan. Now add Checkbox 1 and 3 into the condition fields and selected unchecked. Now you will notice on the rink the link and it says and on it, click it and it will change to or. This means if the user uncheckes either Checkbox 1 or 3 the subform will disappear.

 

Posted Image

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.