Skip to main content
Participant
October 20, 2023
Question

Adobe Acrobat Pro DC Text Field Correspondence with Dropdown Lists. Scripts?

  • October 20, 2023
  • 1 reply
  • 595 views

I have six dropdown lists

- "Dropdown2"

- "Dropdown3"

- "Dropdown4"

- "Dropdown5"

- "Dropdown6"

- "Dropdown7"

I would like to know how to format a text field below the dropdowns so that the textbox reads "Pass" ONLY if "Yes" is selected in EACH of the six dropdown lists. If "Yes" is not selected in each of the six dropdown lists, the text field should read "Not Met"

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
October 23, 2023

You can use this code as the custom calculation script of the text field:

 

var result = "Pass";
for (var i=2; i<=7; i++) {
	if (this.getField("Dropdown"+i).valueAsString!="Yes") {
		result = "Not Met";
		break;
	}
}
event.value = result;
Participant
November 3, 2023

This did not work

try67
Community Expert
Community Expert
November 3, 2023

You'll need to elaborate a bit if you want further help...