I am stuck on a checkbox grid multiple answers and I think I need a small java script code. My problem is as followed:
- I have a grid, checkboxes, answer direction is set on columns.
- Four columns (providers), four rows (products).
I want to force the respondent to choose AT LEAST two products (rows) from one provider (columns). For one provider at least, not all of them. If he chooses three products (rows) but at three different providers (columns), it's wrong.
But I don't need two answers in every column, as I could easily do that in the settings of sawtooth.
And if he does not do that, display an error message when he clicks "next" like: "Please select at least two products from the same provider" to make sure he does.
Any help would be super helpful here!