Going back to previous question/block without allowing changing previous response | XM Community
Skip to main content
Question

Going back to previous question/block without allowing changing previous response

  • March 2, 2021
  • 7 replies
  • 980 views

GrumpyCivet

Hi guys! I want to make a survey such that:

  • participants can go back to previous questions: this is already achieved through [Survey Option] - [back button]

  • participants can see their selected answers but CANNOT change them

I found this thread very helpful https://www.qualtrics.com/community/discussion/3848/restrict-changing-past-answers which used a genius way that somehow "freeze" a question when the "next" button on that page is clicked.
It basically defines a piece of embedded data "Flag1" as an indicator, and
Untitled.pngWhile it works perfectly for multiple choice question, this methed seems not to work with sliders and text entries (and probably some others). I suppose some slight adjustment should make it work. Sadly, I know basically nothing about JQuery and very little about Javascript, so I really don't understand what exactly is going on there.
Does anyone have any suggestions?

7 replies

pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • March 2, 2021

Try: input.prop("disabled",true);
You can disable all the elements with jQuery. You can use the developer tools in the browser to help pinpoint the input if you need help with that.


GrumpyCivet
  • Author
  • March 3, 2021

Thank pogi! I tried add something like
Qualtrics.SurveyEngine.addOnReady(function()
{
input.prop("disabled",true);
});
and
Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery("#"+this.questionId).prop('disabled',true);
});

But they did not prevent me from moving the slider. Am I doing it wrong?


GrumpyCivet
  • Author
  • March 3, 2021

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • March 3, 2021

Be careful with this solution, the slider can still be changed using the keyboard after disabling pointer events.


GrumpyCivet
  • Author
  • March 3, 2021

Hi ahmedA , thanks so much for the heads-up! I never knew it. Do you have an alternative solution by which we can disable the slider entirely?


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • March 3, 2021

Nope. I haven't been able to figure out the slider yet. Perhaps in a few days I may have an answer.


pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • March 3, 2021

Could you just hide it and display the numerical value on return or display a second slider set to the appropriate selection but will not record on the original question?