Validation check
Once you have comepleted the main steps, you will need to modify the parameters in the provided template snippet to apply the changes.
question_code
The multiple choice matrix code you want to configure.
multiple_choice_matrix({
    question_code: "Q3"
})validation
Here we define settings to validate checked options per row. If not needed, just remove this entire block code and skip this tutorial ๐
multiple_choice_matrix({
    question_code: "Q3",
    validation: {
    
    }
})validation -> n_required
A variable that defines how many options should be checked.
โน๏ธ If you are using this validation, do not use min_limit and/or max_limit
 
multiple_choice_matrix({
    question_code: "Q3",
    validation: {
        n_required: 2
    }
})validation -> min_limit
A variable that defines a minimum amount of checked options.
โน๏ธ You cannot use min_limit if you are already using n_required.
multiple_choice_matrix({
    question_code: "Q3",
    validation: {
        n_required: 2,
        min_limit: 2
    }
})validation -> max_limit
A variable that defines a maximum amount of checked options.
โน๏ธ You cannot use max_limit if you are already using n_required.
multiple_choice_matrix({
    question_code: "Q3",
    validation: {
        n_required: 2,
        min_limit: 2,
        max_limit: 3
    }
})Last updated
Was this helpful?