I wish I could say that you helped, but you didn't. I have already searched for solutions on how to do this and have already read what you posted because you have posted that to several others. I have tried the way described in that link and it did not work for me which is why I asked on this site. I would really appreciate a more thorough explanation if you can offer that.
Have you tried the sample form?
Does it do what you want?
Have you studied how it works.?
I am now wanting 7 dropdown boxes to remain hidden, then based on the person selected from the first combo box, the corresponding dropdown box tobecome visible. I want to eventually have it where each new dropdown box will populate more text boxes but that is something I already know how to do.
Assuming you have a combo box called "myComboBox", and another combo box called "Tim", use this script as the custom calculation script for ""Tim":
event.target.display = getField("myComboBox").value == "Tim" ? display.visible : display.hidden
You can use the same script for the combo boxes for the other people, just change the name "Tim" to be whatever those combo boxes are called.
Hope this helps.
Thank you, that helped.
When I open it all the boxes are hidden but if I choose say "Tim" and the secondary combo box "Tim" appears but then I decide on "Paul" instead then the "Paul" combo box appears but "Tim" does not get hidden again.
You need to add code to hide any or all of the optional combo boxes and make them read only, and then show and make read write the appropriate combo box. this solution may not work properly as some readers of PDFs may not properly handle stacked fields.
Use this script to make both "Tim" and "Paul" hidden before the user does anything:
this.getField("Tim").display = display.hidden;
this.getField("Paul").display = display.hidden;
This could be part of a document level script.
The script in post 4 should still work.
Thank you to everyone. I have it working properly now!