Hi! I have a question that is hidden and has page breaks on both ends, like so:
Question 1
Page break 1
Question 2 (Hidden using code below)
Page break 2
Question 3
This works great when you are moving forward through the survey. However, if you want to move backward, from Question 3 to Question 1, you're not able to. You end up going back to Question 2 which automatically sends you forward to Question 3. Is there any way for respondents to be able to go back from Question 3 to Question 1 if they want? For example, can the back button send a participant back 2 pages, instead of just one? (Note: The JS below is copied from various searches. I don't know JS yet.) Thanks!!!!
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId).hide();
jQuery('.QuestionOuter').css('visibility','hidden')
jQuery('#Wrapper').css('visibility','hidden');
jQuery('#Wrapper').css('opacity','0');
});
Qualtrics.SurveyEngine.addOnReady(function() {
jQuery('#NextButton').click();
jQuery('#Wrapper').css('visibility','hidden')
});
Is it possible have back button send participant back 2 pages?
Best answer by ahmedA
Add this to the top (outside all the Qualtrics....) of your JS in the first question.
var double_back;
Change the onReady method of the second question to this:
Qualtrics.SurveyEngine.addOnReady(function () {
if (double_back) {
double_back = 0;
jQuery("#PreviousButton").click();
} else {
jQuery("#NextButton").click();
}
jQuery("#Wrapper").css("visibility", "hidden");
});
Add this to your third question JS:
Qualtrics.SurveyEngine.addOnReady(function () {
jQuery("#PreviousButton").click(function () {
double_back = 1;
});
});
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
