Populate Field Based on Multiple Drop-Down Selections
Hi all,
I am trying to get fields to auto-populate based on selections from multiple drop down boxes. I currently have used things to auto-populate based off of a single drop down selection using the below script:
- var f = this.getField("Dropdown1");
- if (f.valueAsString=="Option 1") event.value = "Text 1";
- else if (f.valueAsString=="Option 2") event.value = "Text 2";
- else if (f.valueAsString=="Option 3") event.value = "Text 3";
- else event.value = "Default text";
However I want to set it up so that certain options come up if selections from multiple fields are true. Example would be:
Drop-Down 1; selection 1 and drop-down 2; selection 1 gives you response 1
Drop-Down 1; selection 2 and drop-down 2; selection 1 gives you response 2
Drop-Down 1; selection 1 and drop-down 2; selection 2 gives you response 3
Drop-Down 1; selection 2 and drop-down 2; selection 2 gives you response 4
Is this possible?
Thanks.
