I have a form where the user may need to add additional lines. The desired function is similar to the repeating section control. However, I use multiple controls hidden within panels rather than one repeating section so that I can more easily access the list data. There are a number of controls contained within each panel, and some of these controls need to be disabled based on other values within the form. My formatting rules work correctly for the first line of controls (that one is not hidden), but the rules do not seem to trigger on any of the controls within the hidden panels. If I unhide the panel, I must then change the values in the associated controls twice in order to trigger my disable rules.
For example, I have a hidden date control (Control A) that is unhidden based on a selection in the above row. This field should also be disabled if a specific choice control (Control B) equals "Reversal". This functions on my first row, but it does not work on Control A unless I unhide it and change the value of Control B again to trigger the rule.
Solved! Go to Solution.
@RWillYum .....Did you try connecting your repeating section to a MLT list column (plain text) and use query xml, MLT column as source in workflow to manipulate the data?
@kunalpatel ...No, I plan on continuing to use separate fields so that I can run the enable/disable rules on each line item rather than every iteration of the control within my repeating sections. My issue is that I cannot trigger a disable rule on any control that was previously hidden. It seems that the rule does not evaluate until 2 conditions are met: 1 - the controlmust first become unhidden 2 - the value of the associated control driving the rule is changed.
@RWillYum .....Did you try using the default value of the control in your rule when the panel is hidden?
In short if the panel is hidden then no one can change the default values of the controls within that panel and hence you'll have to use that as your conditions in your rule.