Skip to main content
Participant
April 14, 2022
Question

Adding custom text field to a drop down menu

  • April 14, 2022
  • 1 reply
  • 2074 views

This is kinda hard to explain so bare with me...

 

We have this Employee Review spreadsheet created in Excel so we could have drop down menus as well as one particular custom drop down menu that when you select one of the 4 options, it also puts in a text field with something that goes along with the drop down menu choice.

 

For example: when you choose the option "Exceeds Expectations" from the drop down menu, it also puts down a text field that says "Employee consistently performs at a high level that exceeds expectations".

 

Im curious of how to go about this in Acrobat Pro DC.

 

I know how to make drop down menus in APDC, but to add an additional text line is where im stuck.

 

Can APDC do this?

 

Thanks in advance for any help!

 

-Shane

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 14, 2022

Sure. As the custom calculation script of that text field enter the following code:

 

event.target.display = this.getField("Dropdown1").valueAsString=="Exceeds Expectations" ? display.visible : display.hidden;

 

(replace "Dropdown1" with the actual name of the field, of course)

Participant
April 14, 2022

so, in the Calculate tab, i input that code and my drop down menu simply disappeared!

 

what did i do wrong?

try67
Community Expert
Community Expert
April 14, 2022

You put it in the wrong place. It should go under the text field, not the drop-down...  You can manually make the drop-down visible again, via Properties - General.