I have an array(numbers) checkbox style question with 4 columns. The first 2 columns are mutually exclusive from all the others... so the user can only check column 1 by itself, column 2 by itself, column 3 with or without 4, and column 4 with or without 3.
I have the code below that implements this behavior.
In addition to this question I have another question with a condition on it that says to only show that question when the user has checked columns 2, 3, or 4 for one of the rows in my array(numbers) checkbox style question. I know the condition is set properly b/c if I remove the code below it works.
If a user checks a checkbox in columns 2, 3, or 4 then condition works and the question is shown. However, if the user checks on column 1, which triggers the code to uncheck columns 2, 3, and 4... the subsequent question still appears. It doesn't go away like it should.
So basically I am asking why the code below is causing this and how can I go about fixing it? I'm guessing I need to call .trigger('click') to uncheck those columns, but then I get stuck in a loop. Sorry if this is more of a javascript question. I'm just trying to figure out how this all works and would really, really appreciate any help you all could provide.
Thanks.
I have the code below that implements this behavior.
In addition to this question I have another question with a condition on it that says to only show that question when the user has checked columns 2, 3, or 4 for one of the rows in my array(numbers) checkbox style question. I know the condition is set properly b/c if I remove the code below it works.
If a user checks a checkbox in columns 2, 3, or 4 then condition works and the question is shown. However, if the user checks on column 1, which triggers the code to uncheck columns 2, 3, and 4... the subsequent question still appears. It doesn't go away like it should.
So basically I am asking why the code below is causing this and how can I go about fixing it? I'm guessing I need to call .trigger('click') to uncheck those columns, but then I get stuck in a loop. Sorry if this is more of a javascript question. I'm just trying to figure out how this all works and would really, really appreciate any help you all could provide.
Thanks.