Hello everyone, I am pretty new to Extreme and nee to some help with JavaScript in my forms.
the code I am having troubles with is as follows:
if(this.getField("NameDropdown").value = "Name 1") {
this.getField("CostCode").value = "Code 1"
} else if(this.getField("NameDropdown").value = "Name 2") {
this.getField("CostCode").value = "Code 2"
}
The code is linked to a Mouse Up trigger on a button. The problem is that when I press the button, regardless of what name is selected in NameDropdown, it doesn't change the value of the CostCode textbox like I want it to, it instead changes whatever is selected in NameDropdown back to "Name 1".
Thanks in advance for anyone who can help me out.