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)}
});
});
Solved
Checkbox check/uncheck enabling
Best answer by Eumetis
I just placed the code in onload and that seems to be working for me
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
