You made a classic mistake... The comparison operator is "==" (or "==="), not "=", which is used to assign a value.
So replace all of these:
if (v="101-3 subd.A")
if (v=="101-3 subd.A")
I made the changes and added the == to my if statements. When I select a value in Dropdown2, Nothing appears in Text4. I don't understand. Is there something else that I need to do beside event.value="Some Value";?
I know it has to be something simple that I am missing, but I just can't seem to see it.
Text4 - Custom Calculation Script:
var v= getfiled("Dropdown2").value;
if (v=="101-3 subd.A") event.value = "ValueA";
else if (v=="101-3 subd.B") event.value = "ValueB";
else if (v=="101-3 subd.C") event.value = "ValueC";
else event.value = " ";
1 person found this helpful
getfiled is incorrect as well. It's getField ... (JS is case-sensitive,
Make sure you switch on the option to show the console on errors and
out when there are errors in your code, and what they are.
Thanks. That was it. I'm not a programmer. The last time I programmed anything was back in Computer Science 101 in college and that was using PASCAL. (Ouch now I feel old!!!!)