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

Setting Field Visibility Based on a Dropdown Selection not showing

Explorer ,
Jan 31, 2024 Jan 31, 2024

Copy link to clipboard

Copied

Hello Community, 

 

I am trying to make a Text field "Details" appear after click the option "Yes, conditionally" only. If this option is not selected then it would the Text field  "Details" will be hidden.

 

This is the code I am using and it is not working but I cant figure out why:

 

var nHide = (event.value=="Yes")?display.visible:display.hidden;
this.getField("Details").display = nHide;

TOPICS
JavaScript , PDF forms

Views

364

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 ,
Jan 31, 2024 Jan 31, 2024

Copy link to clipboard

Copied

The code seems fine. What's the issue with it, exactly?

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
Explorer ,
Jan 31, 2024 Jan 31, 2024

Copy link to clipboard

Copied

Nothing is happening, it wont work but im not sure if there is an additional thing I should do in my adobe acrobat settings? 

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 ,
Jan 31, 2024 Jan 31, 2024

Copy link to clipboard

Copied

LATEST

- Where did you place the code?

- Did you check the JS Console after changing the value of the field to make sure there are no error messages?

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