Copy link to clipboard
Copied
Hello all,
I am attempting to have mulitple text boxes auto populated with variations of a value from a drop down menu. My current issue is I cannot figure out how to assign an abriviated value to each of the drop down menu items. Attempting to use the export value won't work since it changes the output text in all the text boxes I am using that are tied to the drop down menu. I found a script here that I thought might work but I am not getting the result I desire and I can't figure out what I need to change to make it work, I'm sure it's something simple. Below is the script I am using.
var e=this.getField("drop down menu name").value AsString;
if(e="drop down menu item #1")
{
event.value="abbriviation of menu item #1";
}
if(e="drop down menue item #2")
{
event.value="abbriviation of menu item #2";
}
The outcome with the above scrpit is it always populates with the abbriviation of item #2, even when item #1 is initially selected from the drop down menu. Any help with this would be greatly appriciated.
Copy link to clipboard
Copied
To compare values use ==, not only =
Copy link to clipboard
Copied
To compare values use ==, not only =
Copy link to clipboard
Copied
Do I change all = to ==?
Copy link to clipboard
Copied
Only where you compare values. Not where you set values.
Copy link to clipboard
Copied
Great, got it! Thank you for your assistance. I greatly appriciate it.

