Capturing use of the "back" button | XM Community
Skip to main content

Capturing use of the "back" button

  • April 12, 2018
  • 1 reply
  • 14 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

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • April 12, 2018
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.