Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Locked

Dropdown List Script for Date Needed

New Here ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

Hi there everyone,
I'm trying to make it so when the user selects F OR N/A from the drop down the date stays hidden.  If they select P  I need the date to appear.  A fantastic couple of users were able to make me the code below for the N/A, and it works perfectly, but I can't seem to figure out how to make the script work for N/A and for F at the same time.  Thank you for any help you can provide. 

 

event.target.display = (this.getField("Dropdown1").valueAsString=="N/A") ? display.hidden : display.visible;

 

Dropdown 1.PNG

TOPICS
Edit and convert PDFs, JavaScript, PDF forms

Views

100

Likes

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

correct answers 1 Correct answer

Adobe Community Professional , Jun 04, 2021 Jun 04, 2021

Likes

Translate

Translate
Adobe Community Professional ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

LATEST

Likes

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