Capturing use of the "back" button | XM Community

Capturing use of the "back" button

  • 12 April 2018
  • 1 reply
  • 3 views

Is there a way to use Java script to record in the dataset whether the respondent hit the "back" button on any given page?

1 reply

Userlevel 7
Badge +27
Use Qualtrics.SurveyEngine.addOnPageSubmit(function(button) {...

The value of button will be "prev" (or "previous" - I don't remember) if the PreviousButton is clicked. Then you can save something to an embedded data field to record it.

Leave a Reply