We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
Greetings. I have looked all over for this solution and am hitting a wall.
If (dropdownList1 value == "department1") && (dropdownList2 value == "building1") then textBox value == "Mr. Church"
textBox value == " "
Anyone had any luck getting something like this working?
var d1 = this.getField("dropdownList1").value;
var d2 = this.getField("dropdownList2").value;
if ((d1 == "department1") && (d2 == "building1"))
event.value = "Mr. Church";
event.value = "";
When you use this as the custom calculation script in your text field, you should see the behavior you described.
OMG you are a lifesaver!!! This is EXACTLY what I was looking for.
Thank you! I am new to the forum, so is there any way to assign you points for this?
How would you add more conditions to that for more combinations of choices?