I have a question with 4 scoring sliders (0-5) which are not mandatory. I would like you to set an embedded data that if a slider is unselected, the value should be 0.
Is that possible?
Do you want embedded data fields or the value of the unselected sliders set to zero?
Simin
You can include 4 embedded data with a hardcoded value o '0' in it e.g.: ED1=0.
And at the end of survey or after block just update the embedded data via a branch logic something like this for all 4 sliders:
The one's which have the value of 0, the respondent may have selected 0 or might have not slided the slider.
Hope this helps!
Great job on providing a solution Deepak along with screenshots!
TomG I want to set the value of the unselected sliders to zero.
https://community.qualtrics.com/XMcommunity/discussion/comment/50464#Comment_50464That's what I suspected. Use this:
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
jQuery("#"+this.questionId+" .ResultsInput").filter(function(){return this.value.length==0;}).val("0").trigger("change");
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.