
Hi, I am looking to have javascript global variable for both form loading and changing events. For example, I get a value from form loading, and how can I still get it when form changes
*This post is locked for comments
I have the same question (0)You can declare it as
var myGlobalVariable = 0;
somewhere in the web resource, just make sure it's declared outside of the functions..(so, basically, you might put that code above in the first line of your script)
That would work between form onload, field onchange, etc
Unless you are asking how to keep the same global var when the user changes a form.. That I don't know (other than to store those values in the hidden fields)