Dropdown defaults or is not selectable if previous field answer is NO

New Here ,
Jun 14, 2022 Jun 14, 2022

Copy link to clipboard

Copied

I have 2 dropdown fields in my form.

Are you using multiple columns? Yes or No are the options.

The next column asks How many? with options of 2, 3, or 4.

I'd like to have the second dropdown grayed out or auto default to 1 if No is selected in the first dropdown.

any help would be appreciated.

TOPICS
PDF forms

Views

44

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 2 Correct answers

Adobe Community Professional , Jun 14, 2022 Jun 14, 2022

Lets say second dropdown name is "Dropdown2", as validation script of first dropdown use this:

if(event.value == "No")
this.getField("Dropdown2").value = "1";

Likes

Translate

Translate
Adobe Community Professional , Jun 14, 2022 Jun 14, 2022

Yes, if you want to show 1 then that needs to be an option in Dropdown2.

Likes

Translate

Translate
Adobe Community Professional ,
Jun 14, 2022 Jun 14, 2022

Copy link to clipboard

Copied

Lets say second dropdown name is "Dropdown2", as validation script of first dropdown use this:

if(event.value == "No")
this.getField("Dropdown2").value = "1";

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
New Here ,
Jun 14, 2022 Jun 14, 2022

Copy link to clipboard

Copied

Yes, the fields are named Dropdown1 and Dropdown2, however, that did not work. do I need to have 1 as an option in dropdown 2?

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
Adobe Community Professional ,
Jun 14, 2022 Jun 14, 2022

Copy link to clipboard

Copied

Yes, if you want to show 1 then that needs to be an option in Dropdown2.

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
New Here ,
Jun 14, 2022 Jun 14, 2022

Copy link to clipboard

Copied

LATEST

Great, Thanks that worked!

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