How do I disable the previous button in the middle of the survey? | XM Community
Skip to main content
Solved

How do I disable the previous button in the middle of the survey?

  • November 15, 2017
  • 7 replies
  • 448 views

Barnaby
Qualtrics Employee
Forum|alt.badge.img+1
I want to allow participants to go back in most of the pages of the survey, but there are some pages where I don't want them to be able to go back. How do I disable the previous button in the middle of the survey?

Best answer by AnthonyR

On questions where you do not want them to be able to go back, add the following to the AddOnReady section of the javascript editor: $('PreviousButton').hide(); $('PreviousButton').disable();

7 replies

AnthonyR
Level 4 ●●●●
Forum|alt.badge.img+7
  • Level 4 ●●●●
  • Answer
  • November 15, 2017
On questions where you do not want them to be able to go back, add the following to the AddOnReady section of the javascript editor: $('PreviousButton').hide(); $('PreviousButton').disable();

Barnaby
Qualtrics Employee
Forum|alt.badge.img+1
  • Author
  • Qualtrics Employee
  • November 15, 2017
Hm...I just tried adding this to my second question & the previous button still appears. I've attached the QSF below - any idea why this isn't working?

KatC
Level 2 ●●
Forum|alt.badge.img+2
  • Level 2 ●●
  • November 15, 2017
Could you also potentially create blocks in your survey, where the question where you don't want them to go back on is in a new block? You would need to have a branch condition between the blocks, but this could help you disable the button.

AnthonyR
Level 4 ●●●●
Forum|alt.badge.img+7
  • Level 4 ●●●●
  • November 15, 2017
> @Barnaby said: > Hm...I just tried adding this to my second question & the previous button still appears. I've attached the QSF below - any idea why this isn't working? Whoops, this actually belongs in the addOnReady section. Sorry!

Barnaby
Qualtrics Employee
Forum|alt.badge.img+1
  • Author
  • Qualtrics Employee
  • November 16, 2017
Thanks, @AnthonyR - that second option worked!

Hi! This works, except if the questions is answered wrong on the page with the script (i.e. error message appears) then the button reappears. Do you have a solution for this?

  • September 17, 2020

AnthonyR Thank you for this! Really helpful!

Wondering if there is a way to reverse the JS and only show back buttons for specific blocks while disabling the Back Button option from the Survey Option tab?