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

Drop down box and Dynamic presence

$
0
0

I hope this makes sense.

 

I have a drop down box with several values in it. Based on the user's selection, different fields and subforms will either be visible or hidden. To do this, I built a switch statement on the exit event of the drop down box. The statement works great until I start introducing dynamic properties to one of the subforms.

 

Two of the fields in one repeating subform need to be hidden or set back to visible depending on the choice in the drop down box. However, once you have added multiple instances of the subform, it only hides/displays the FIRST field in the subform. I need it to hide/display ALL of those fields when the subform is repeated.

 

To do this, on the first selection, I created a for statement to go through all of the instances and set all of those fields to hidden or visible as needed. However, it's not working. At all. Even on the first instance like it used to.

 

I hope I'm making sense. Here is the code I am using for my for statement:

 

var indNum = xfa.resolveNodes("RequestDetails.RepeatingSection[*].serialNum");for (var i=0; i < indNum.length; i++) {    xfa.form.form1.Page1.RequestDetails.RepeatingSection(i).serialNum.presence = "visible";    xfa.form.form1.Page1.RequestDetails.RepeatingSection(i).requestedNum.presence = "hidden";}

Viewing all articles
Browse latest Browse all 5571

Trending Articles



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