HI!
I am trying to implement a 'custom' force response. I want to know whether any option on the mcq has been selected before they submit the page. I have put together a code using different threads in this forum, but alas can't get it t work. Any obvious mistakes in my code? There are 4 choices for the mcq.
jQuery('#CustomNextButton').on('click', function() {
var ures =this.getChoiceValue
Qualtrics.SurveyEngine.setEmbeddedData("ures", ures);
if (ures =="") {
jQuery("#QID7").show();
} else {
jQuery('#NextButton').click();
}
check whether any option of a multiple choice question has been selected before page submit
Best answer by pb7
Hello, I just figured out my mistake!
Here is the code if anyone needs it in the future
jQuery('#CustomNextButton').on('click', function() {
if(jQuery("#QID4 input.radio").is(":checked")){
jQuery('#NextButton').click();
} else {
jQuery("#QID7").show();
}
});
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.
