make a field visible based on a selection in a drop-down list
I have been asked to create a PDF where a user will select from multiple choices. Each choice should display a text box with different information. I'm new to programming (and to programming in Adobe). I understand from poking around that I will use validation script coding for the drop-down list. I've found an example, but it doesn't work and I've checked and rechecked the code with the same outcome. Here's the example code:
this.getField(txtDescription").display = event.value=="Other" ? display.visible : display.hidden;
txtDescription is the text box that will display if "Other" is selected from the drop-down list.
For my form, I need 3, or more, drop-down choices, each of which will display a corresponding, otherwise hidden, text box.
Any pointers will be greatly appreciated. Any links to tutorials would also be greatly appreciated.
Thank you
