• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

367

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

Community Expert , 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";

Votes

Translate

Translate
Community Expert , Jun 14, 2022 Jun 14, 2022

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

Votes

Translate

Translate
Community Expert ,
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";

Votes

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?

Votes

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
Community Expert ,
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.

Votes

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!

Votes

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