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

How to make a dropdown menu and 2 text fields required based on dropdown menu option of Yes?

New Here ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

How do you make another dropdown menu response and 2 text fields to be required if the 1st dropdown menu answer is yes. So, if someone answers "Yes" to a third party being involved, we need the next dropdown menu to be required, as well as 2 text fields to be required. Any help would be greatly appreciated.

TOPICS
Edit and convert PDFs , How to , PDF forms

Views

117

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 ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

LATEST

You didn't specify the names of the fields involved, so I will give you a generic script that you will need to adjust with the actual field names. As the custom Validation script of the first drop-down you can use the following:

 

if (event.value=="Yes") {
	this.getField("Dropdown1").required = true;
	this.getField("Text1").required = true;
	this.getField("Text2").required = true;
} else {
	this.getField("Dropdown1").required = false;
	this.getField("Text1").required = false;
	this.getField("Text2").required = false;
}

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