Form with Checkboxes and Conditional Text
Hello, I am VERY new to Javascript and have been scouring these threads to find a solution, but I'd appreciate any assistance! I'm trying to develop a conditional form with 8 checkboxes. If a checkbox is selected, I want the applicable text to appear. I was able to make this work using the Actions Tab and "Show/hide a field."
However, if the checkbox is unchecked, I'd like the text to be hidden. I drafted the code for a text field, but that didn't seem to work:
if (event.target.value("CHECKBOX").value=="Off")
event.target.value("TEXTFIELD").value="";
Also are there any suggestions as to how to adjust the formatting if only 4 of 8 checkboxes are applied? I tried to input the terms into a table, but I'm not sure how that would work...
