Answered
checkbox Yes/No to show or hide text box
- November 10, 2022
- 1 reply
- 1975 views
Hi, I'm using Adobe to create a survey and expected to generate a list at the end.
And here is the thought process:
For each question, the participant is expected to answer Yes or No.
When they select Yes, a textbox in the table will show up (see pic below) and the code for checkbox Q1-Yes is the following
var fieldHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("RequiredQ1").display=fieldHide;
The same process should apply for No but it didn't work, here is the code for checkbox Q1-No:
var fieldHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("NAQ1").display=fieldHide;
And I'm also thinking that instead of signing the code to each checkbox, is it possible to centralize the code to one command button(like the "Generate Requirement Checklist " in the pic)? And when the participant hit it, the text field in the table will show up.

Any help on this would be appreciated
