Jump to content
xisto Community
Sign in to follow this  
Saint_Michael

Livecycle Tutorial - Multi-Checkbox Conditional Through Action Builder

Recommended Posts

In this tutorial I will expand a little bit more with actions based on my last tutorial. In this one, I will set up a series of check boxes in which a specific action will happen when a user clicks 1, 2, or 3 check boxes and when all three check boxes are selected something else happens.

The first step is to populate the form with the five check boxes with three being the options and the two check boxes that will be used as the results when certain conditions are met.

 

Posted Image

 

If you followed the last tutorial, your next step is to open up the Action Builder and you can either select it from right clicking one of the checkboxes and select Action or click Tools at the top menu and selection Action Builder. Once there, you are going to do the following:

Add two Check box #1

Add two Check box #2

Add one Check box #3


Now you will set the following conditions:

 

Check box #1 will have Is Checked and Is Unchecked

Check box #2 will have Is Checked and Is Unchecked

Check box #3 will have Is Unchecked

 

If you notice there are all linked together, and you see the word “and” in the link this means that if you were to run this as is, you will have a whole mess of problems such as the results check boxes being checked off. So, you want to click on the word “and” and switch it to an “or” and this way if it meets certain conditions then one of two results will happen.

 

Next, we will set up our results, which are what will happen to the other two check boxes when the specific conditions are met based on what check boxes have been checked off. In the result column, select from the drop down, choose Select Value to Field and select the fourth check box to be checked. However, to prevent both check boxes from being checked, you need to add a second result and for the fifth check box you need to select unchecked. If you click the Preview PDF tab and went and checked all three boxes you will notice they are all keep pointing to the fifth box, however, we want it to switch to the forth check box when all three are checked and so we need to set up another Action in order to achieve the desired effect.

 

Posted Image

 

So, head back over to the Design View Tab, then go to Action Builder once again and create a New Action and to do that click the New Action Icon next to the trashcan and then do the following.

 

Condition (keep the condition link to “and”)

Checkbox1 is set to Checked

Checkbox2 is set to Checked

Checkbox2 is set to Checked

 

Result

Set Value of Checkbox4 to checked

Set Value of Checkbox5 to unchecked

 

Posted Image

 

Hit ok and now its test time. Click on Preview PDF, and check of checkboxes 1 and 2 and the 5th box should still be checked. Now click checkbox three and it should now switch to checkbox 4. Then, uncheck either checkbox one or two or checkbox 5 should be checked off again.

 

So there go, you just now created a more complex action that can be used in any form you plan on doing that has something like this. Attached to this tutorial is a live demo of the PDF you just created for comparison needs and thank you for reading this tutorial and checkout for future LiveCycle tutorials by me.

tutorial2demo.pdf

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.