I am using a timer question to ensure that subjects spend at least 10 seconds on a slide. Once they have clicked through the slide, however, I would like to give subject the ability to click back to review the slide without restarting the timer. A Qualtrics help employee informed me that that this would need custom code - has anyone done something like this before?
Page 1 / 1
I would suggest using branch logic and embedded data to set a status for each slide once they've seen it once, then use display logic on your timer question to only display it if that status isn't set.
> @JenCX said:
> I would suggest using branch logic and embedded data to set a status for each slide once they've seen it once, then use display logic on your timer question to only display it if that status isn't set.
If you used branch logic then they wouldn't be able to click back at all and the embedded data field would be meaningless. It sorta solves the problem, but probably not in the way @hursre is thinking.
However, using that idea, you could set an embedded variable in JavaScript then use that variable in display logic to prevent the timer question from displaying when they go back. Add this JS to your timed slide questions (change embedded data field for each slide):
```
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
Qualtrics.SurveyEngine.setEmbeddedData("noTimerSlide1", "1");
});
```
> I would suggest using branch logic and embedded data to set a status for each slide once they've seen it once, then use display logic on your timer question to only display it if that status isn't set.
If you used branch logic then they wouldn't be able to click back at all and the embedded data field would be meaningless. It sorta solves the problem, but probably not in the way @hursre is thinking.
However, using that idea, you could set an embedded variable in JavaScript then use that variable in display logic to prevent the timer question from displaying when they go back. Add this JS to your timed slide questions (change embedded data field for each slide):
```
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
Qualtrics.SurveyEngine.setEmbeddedData("noTimerSlide1", "1");
});
```
> @TomG said:
> > @JenCX said:
> > I would suggest using branch logic and embedded data to set a status for each slide once they've seen it once, then use display logic on your timer question to only display it if that status isn't set.
>
> If you used branch logic then they wouldn't be able to click back at all and the embedded data field would be meaningless. It sorta solves the problem, but probably not in the way @hursre is thinking.
>
> However, using that idea, you could set an embedded variable in JavaScript then use that variable in display logic to prevent the timer question from displaying when they go back. Add this JS to your timed slide questions (change embedded data field for each slide):
> ```
> Qualtrics.SurveyEngine.addOnPageSubmit(function() {
> Qualtrics.SurveyEngine.setEmbeddedData("noTimerSlide1", "1");
> });
> ```
Yep, you're totally right. I must have been distracted when I read the OP because I was thinking they were wanting to reroute at the end of the survey. Thanks for clarifying so the poor person didn't take my incorrect advice.
> > @JenCX said:
> > I would suggest using branch logic and embedded data to set a status for each slide once they've seen it once, then use display logic on your timer question to only display it if that status isn't set.
>
> If you used branch logic then they wouldn't be able to click back at all and the embedded data field would be meaningless. It sorta solves the problem, but probably not in the way @hursre is thinking.
>
> However, using that idea, you could set an embedded variable in JavaScript then use that variable in display logic to prevent the timer question from displaying when they go back. Add this JS to your timed slide questions (change embedded data field for each slide):
> ```
> Qualtrics.SurveyEngine.addOnPageSubmit(function() {
> Qualtrics.SurveyEngine.setEmbeddedData("noTimerSlide1", "1");
> });
> ```
Yep, you're totally right. I must have been distracted when I read the OP because I was thinking they were wanting to reroute at the end of the survey. Thanks for clarifying so the poor person didn't take my incorrect advice.
Thanks all! The JS solution worked!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.