Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

How Do I Create Conditionally Required Check Boxes?

$
0
0

Hi there,

 

I am working in LiveCycle Designer ES3.  How do I make child check boxes conditionally required when a parent check box is checked?  I am able to get script to work to make a text box required when its corresponding check box is checked, but I can't get the same script to make child check boxes required if a parent check box is checked. 

 

The problem I'm running into is that I can't change the Value Type of a check box to "Recommended" which is how I was able to get this conditional requirement to work for text boxes using the following script on the Change event for the text box's corresponding check box.

 

if(this.rawValue =='1')

{

EXAMPLETEXTBOXNAME.mandatory = "error";

Gender.mandatory = "error";

Gender.border.edge.color.value = "225,0,0";

}

else{

EXAMPLETEXTBOXNAME.mandatory = "disabled";

Gender.mandatory = "disabled";

Gender.border.edge.color.value = "0,0,0";

}

 

Please see the picture below.  When the top (parent) check box is checked, the user should be required to check at least one of the (child) check boxes below it.  Please let me know how to do this.

 

conditionallyrequiredcheckboxes.JPG

 

Thank you.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>