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

Setting Field Visibility Based on a Dropdown Selection not showing

Explorer ,
Jan 31, 2024 Jan 31, 2024

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
531
Translate
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

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

Translate
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

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

Translate
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
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?

Translate
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