Solved
Javascript applying to next page
Hi everyone. I have a very short 3 question survey. I am distributing by email with the first question embedded as an inline email question. It is the only question on the page (added a page break to the survey editor) between Q1 and Q2. I didn't want respondents to have to click the next button to continue so I tried using Javascript to auto advance to the next page after 1 second. It goes to the next page, however on that screen the Javascript is still trying to advance after 1 second. I don't understand why it is applying here too. The Javascript is only on Q1. A page break separates Q1, then Q2 (display logic applies) and Q3 are on the next page. There is no Javascript on either Q2 or Q3. My survey is published so that shouldn't be a problem. Any ideas are welcome!
The script I applied on Q1 is now attached.
Best answer by TomG
PeriodicalExecuter is the same as setInterval. Use setTimeout instead:
```
setTimeout(function () {jQuery('#NextButton').click();},1000);
```
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
