• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can I make form field invisible until another form field is completed?

Community Beginner ,
Aug 03, 2018 Aug 03, 2018

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.

TOPICS
PDF forms

Views

2.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Aug 05, 2018 Aug 05, 2018

Copy link to clipboard

Copied

LATEST

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

Screen Shot 2018-08-05 at 17.23.42.png

View solution in original post

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2018 Aug 03, 2018

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");

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 05, 2018 Aug 05, 2018

Copy link to clipboard

Copied

LATEST

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

Screen Shot 2018-08-05 at 17.23.42.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines