Hi,
At my organization, we ask a lot of constant sum questions, but we also want to let our respondents skip them when they don't have the relevant data. As of now, it seems impossible to allow respondents to skip questions when 'Must Total' is selected. I think it would be ideal if the 'Must Total' validation was "activated" AFTER respondents enter ANY data into one of the constant sum boxes. So, in effect, if respondents don't enter any data, they can skip it without triggering the validation rules.
The folks over at Product Ideas suggested I post the question here. Does anyone have the custom code to make this work? Thank you in advance - I'm a newbie with javascript!
Also, I have added this request/idea to the Product Ideas page, and I've asked if they can allow the validation to be changed to 'Request Response' at a minimum or, ideally, if they can "activate" the validation as described above.
If you think this should become a standard feature, please upvote it here: https://community.qualtrics.com/XMcommunity/discussion/16460/request-response-not-force-for-constant-sum-questions/p1?new=1 .
Thanks,
Dr. Josh Kahn
Allowing respondents to skip constant sum questions despite 'Must Total' validation
Best answer by ahmedA
It surprising that ObjectiveFocus also asked this same question. While we wait for it to become a feature, here's a code you can use:
Qualtrics.SurveyEngine.addOnReady(function () {
let quest = this,
qc = quest.questionContainer,
id = quest.questionId,
total_box = qc.querySelector("#" + id + "_Total");
total_box.oninput = function () {
quest.disableNextButton();
if (total_box.value == 0 || total_box.value == 100) quest.enableNextButton();
};
});
You can change the 0 or 100 values to whatever you want.
NOTE: this will work with the constant sum question NOT with a matrix set up as a constant sum.
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
