Allow "click back" without restarting timer questions / Disable timer question after first use? | XM Community
Solved

Allow "click back" without restarting timer questions / Disable timer question after first use?


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?
icon

Best answer by TomG 15 July 2019, 19:54

View original

4 replies

Userlevel 7
Badge +11
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.
Userlevel 7
Badge +27
> @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");
});
```
Userlevel 7
Badge +11
> @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.
Thanks all! The JS solution worked!

Leave a Reply