Skip to main content
Participating Frequently
January 31, 2024
Question

Setting Field Visibility Based on a Dropdown Selection not showing

  • January 31, 2024
  • 1 reply
  • 695 views

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;

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 31, 2024

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

Participating Frequently
January 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? 

try67
Community Expert
Community Expert
January 31, 2024

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