igor92128

Parameter References

Discussion created by igor92128 on Jul 1, 2013
Latest reply on Jul 2, 2013 by igor92128
Let's say I have the following code:

var myVar = "${sde_field10}";

...

getReturn(myVar);

...

getReturn(tempVar)
{
    if (tempVar == "MEDIUM") { return 'Display medium'; }
}

Now, the problem is that when I call getReturn(), the value of tempVar is always ${sde_field10} inside the function. However when I display ${sde_field10} inside my main pageReady() function, it correctly displays the value "MEDIUM" or whatever it is on the popup. How do I get to see the actual value of ${sde_field10}?

Thanks,
Igor

Outcomes