Form Assistance: If any checkbox is checked, hidden text box turns on
I am new to java script and have been trying to figure this out by reading multiple posts but I haven't found a solution that will work yet.
I am creating a form that has 15 questions, each with a Yes or No checkbox - each is labeled Yes.1 and No.1 with all outputs set to Yes. I am trying to write a script if any "No" checkbox is checked, a text box appears at the bottom that says "Rejected." I already have that box named "rejected" and figured out how to set the options so it is hidden and locked. I just cannot get it to appear if one of the "No" boxes is checked. To the text box I have added an action with Mouse Up to run a java script as follows:
event.target.hidden = !this.getField("No. ").getArray().some(function(a){return (a.value == "Yes")});
How far off am I? Any assistance is appreciated!
