Copy link to clipboard
Copied
How can I make form field invisible until another form field is completed?
For example, you cannot fill in a comment section until you answer yes or no above.
Copy link to clipboard
Copied
If your forms are done in InDesign you can do it from there by "hide until triggered" on the form you want hidden. And when you click a button you can use the action show/hide form. It requires less programming but the JavaScript method is possible to define even more solidly.
You can also do this in Acrobat by using the Show/hide action
Copy link to clipboard
Copied
If the dependency is on a checkbox or radio button, then use this script in the calculation script for the field that will be shown/hidden
Assume the dependency field is named "YesNo".
event.target.hidden = (this.getField("YesNo").valueAsString == "Off");
Copy link to clipboard
Copied
If your forms are done in InDesign you can do it from there by "hide until triggered" on the form you want hidden. And when you click a button you can use the action show/hide form. It requires less programming but the JavaScript method is possible to define even more solidly.
You can also do this in Acrobat by using the Show/hide action