Hello all, I would like to create a survey where the responses on particular slider questions are either not recorded or default back to the initial value once the survey is submitted. I am trying the following with JS but this still seems to capture the response.
Any help much appreciated (--a JS newbie). Thanks.
Qualtrics.SurveyEngine.addOnload(function() {
var sliderQuestionId = "Q1"; //
var originalValue = 0; //
this.getQuestionContainer().querySelector('.q-slider').addEventListener('input', function() {
if (this.value !== originalValue) {
this.value = originalValue;
}
});
});