Copy link to clipboard
Copied
I've created a drop down menu with a list of items including "Other". If the option is "Other", is there a way for the user to manually type in whatever that "Other" option is in the drop down section without updating the drop down list? Or are there other options for handling this?
Thank you in advance for your assistance.
Sure. Let's say the drop-down field is called "Dropdown1". Use this code as the custom calculation script of the "other text" text field:
event.target.display = (this.getField("Dropdown1").valueAsString=="Other") ? display.visible : display.hidden;
Copy link to clipboard
Copied
What product are you using?
Copy link to clipboard
Copied
On my laptop Adobe XI Pro on the desktop Adobe DC.
Copy link to clipboard
Copied
You should use a separate text field for that. You can hide/show it based on the selection in the drop-down.
Copy link to clipboard
Copied
Thank you for the suggestion. I think that would be a great solution. I don't know how to hide/show another text field based on a drop-down selection. Can you let me know how?
Copy link to clipboard
Copied
Sure. Let's say the drop-down field is called "Dropdown1". Use this code as the custom calculation script of the "other text" text field:
event.target.display = (this.getField("Dropdown1").valueAsString=="Other") ? display.visible : display.hidden;
Copy link to clipboard
Copied
This worked perfectly. You're the best. Thank you,