Copy link to clipboard
Copied
My goal is to create a document that allows clients to answer questions and depending on their answers either open or show new fields based on their answers. Hoping someone can point me in the right direction to start learning how to make this possible.
Example:
Q: What do you like to drink?
If soda or other is selected. a new field is either unlocked or appears (depending on adobes capability).
Enter your preferred drink:
[Client enters choice here]
I've seen some sources that deal with numbers, but not based on client response. Unless I haven't used the right terms to properly search. Any insight is appreciated.
Copy link to clipboard
Copied
You can either unlock/lock (read-only) or show/hide fields in acrobat.
I would use script as 'Validation' in first field where you choose drink, let's say you have 3 fields named "Water","Soda","Other" and you want to show/hide depend on answer in first field:
this.getField("Water").display = event.value == "Water" ? display.visible : display.hidden;
this.getField("Soda").display = event.value == "Soda" ? display.visible : display.hidden;
this.getField("Other").display = event.value == "Other" ? display.visible : display.hidden;