I have a requirement to count the number of "unhidden" controls in a form. Take the example below:
A choice control hides 1 or 2 calculated value controls. I need to display a total for the number of calculated values being displayed. For example:
When one calculated value control is displayed the count should return "1":
When two calculated value controls are displayed the count should return "2":
Is there some kind of JS sorcery that can identify whether a control is hidden or displayed and provide a count? I have attached an export of the form shown in these examples.