Hello everybody,
I have study with multiple screens. I activiated the back button feature in general and then hided the back button for a majority of pages, besides two. For these, I would like to count the number of "clicks on the back button" for each participants. I tried using the standard "Timer", but it just continues recording where it stopped.
Can I count the number of clicks on the back button to measure how often a person went back?
Thanks in advance for any advice you can offer!
Kim
Count number of "back button" uses
Best answer by SurajK
Ok, so you are looking to count the backbutton click for the specific question, then you can simply create the 2 embedded variables as you mentioned above and use the above code at question level.
For page 5 use the below code,
Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery('.PreviousButton').click(function(){
var currcnt1 = Qualtrics.SurveyEngine.getEmbeddedData("BackButton_cnt1")
currcnt1=Number(currcnt1) + 1
Qualtrics.SurveyEngine.setEmbeddedData("BackButton_cnt1",currcnt1)
});
});
And on page 10 use the below code,
Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery('.PreviousButton').click(function(){
var currcnt2 = Qualtrics.SurveyEngine.getEmbeddedData("BackButton_cnt2")
currcnt2=Number(currcnt2) + 1
Qualtrics.SurveyEngine.setEmbeddedData("BackButton_cnt2",currcnt2)
});
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
