Skip to content

Instantly share code, notes, and snippets.

@mattbloomfield
Created July 11, 2018 11:08
Show Gist options
  • Save mattbloomfield/1a34555b9f1618ebbd07a458167b69c6 to your computer and use it in GitHub Desktop.
Save mattbloomfield/1a34555b9f1618ebbd07a458167b69c6 to your computer and use it in GitHub Desktop.
Qualtrics.SurveyEngine.addOnReady(function() {
// Hide the real next button and the second question. You may need to swap out the QID on that
jQuery('#NextButton').hide();
jQuery('#QID2').hide();
// adding next button. To add styling, you could put some CSS in the Look and Feel targetting
// #FakeNextButton {}
jQuery('#Buttons').append('<button id="FakeNextButton">Next</button>');
// handle clicks to the next button
jQuery('#FakeNextButton').on('click', function() {
// What happens when you click the fake next button
jQuery('#NextButton').show();
jQuery('#FakeNextButton').hide();
// again, you may need to swap out this ID
jQuery('#QID2').show();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment