Basically we have custom javascript on the first question of our survey and we only want it to run the first time the user sees the question. If the user advances in the survey and then goes back to that question, we do not want to have the code run again. I think this could be solved with a global counter variable that is used throughout the survey, but I'm not if/how to set such a variable. I tried setting a variable in the code we use for the question but as expected when the user goes back to the question, the code runs again and resets the variable so the counter doesn't work. Thanks.
Is there a way to set global variables or have custom question Javascript only run once?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
