In the below picture I have added javascript such that if you select y for a then x also gets selected for a and similarly for b and c. Now the respondent can deselect the selection of x (as done for c) but after deselecting x for c they are not able to select x again. How do I do that using javascript. Thank you for the help in advance!!!
Here is the Javascript I used
Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery('input[type="checkbox"]').change(function(){
if ( jQuery("[id='QR~QID6~1~2']").is(":checked"))
{jQuery("[id='QR~QID6~1~1']").prop('checked',true)}
if ( jQuery("[id='QR~QID6~2~2']").is(":checked"))
{jQuery("[id='QR~QID6~2~1']").prop('checked',true)}
if ( jQuery("[id='QR~QID6~3~2']").is(":checked"))
{jQuery("[id='QR~QID6~3~1']").prop('checked',true)}
});
});
Checkbox check/uncheck enabling
Best answer by Eumetis
I just placed the code in onload and that seems to be working for me
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.
