How can I make multiple text box fields visible based on a List Box's multiple selections?
- February 20, 2020
- 1 reply
- 350 views
The code found here: https://answers.acrobatusers.com/How-can-I-make-a-field-visible-based-on-a-selection-in-combo-box-q15194.aspx
Is almost what I need, but unfortunately it only allows one text box field to be visible at one time. I would like the user to select multiple selections and have those selections appear. I currently have para1, para 2, and para3 text boxes defaulted to hidden. I have the below code in my List Box. Issue is that it only works to display 1 selection at a time. I want the user to be able to select several and then have the selected text box appear. I have attached my test document. Any help/feedback much appreciated. Thank you.
this.getField("para1").display = event.value=="para1" ? display.visible : display.hidden;
this.getField("para2").display = event.value=="para2" ? display.visible : display.hidden;
this.getField("para3").display = event.value=="para3" ? display.visible : display.hidden;
