Hide or Show Text Fields based on result of 7 radio buttons Yes/No
I have 7 radio buttons groups. PD.Q1 to PD.Q7
Each one is Yes or No
I have two text fields. PDW.Warning1 and PDW.Warning2.
Each one is hidden by default.
My objective is to show these warning text boxes based on the result of the radio buttons. The intent is that if any of the radio button groups are selected "Yes", then the warning will appear, regardless of its 1, or all 7. If all of the radio buttons are selected "No", then the warnings will remain hidden.
I wrote this in the calculations of one of the text boxes, and it works, but it has issues.
It shows the hidden warnings, but its a "sequencial" process, meaning when a user checks the first yes, then the second no, it shows, then hides the text boxes.
I need the warning to remain after a "Yes", and only hide when all radio buttons are "No".
if(!event.source || (event.source.name = "PD"))
{
var nHide=(event.source.value=="Yes")?display.visible:display.hidden;
this.getField("PDW").display=nHide;
}
Thanks in Advance!
