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

How do I pre-fill multiple fields with a percentage, based on two options from a dropdown?

New Here ,
Apr 11, 2024 Apr 11, 2024

Copy link to clipboard

Copied

I am creating a form to use for 1000+ scenarios. I have calculations to do under two separate scenarios. If I select one dropdown option, I would like a set of 4-5 fields to pre-populate with a certain percentage. If I select another dropdown option, I would like it to pre-populate the same 4-5 fields with a different percentage. 

TOPICS
PDF , PDF forms

Views

38

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 ,
Apr 12, 2024 Apr 12, 2024

Copy link to clipboard

Copied

LATEST

As the custom Validation script of the drop-down you can use something like this (adjust the field names and values as needed, of course):

 

if (event.value=="Option1") {
	this.getField("Perc1").value = 0.1;
	this.getField("Perc2").value = 0.2;
	this.getField("Perc3").value = 0.3;
	this.getField("Perc4").value = 0.4;
} else if (event.value=="Option2") {
	this.getField("Perc1").value = 0.9;
	this.getField("Perc2").value = 0.8;
	this.getField("Perc3").value = 0.7;
	this.getField("Perc4").value = 0.65;
}

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