Validation check

To enable advanced validation check for your multiple choice matrix, import the library as described in the Getting started section.

Once you have comepleted the main steps, you will need to modify the parameters in the provided template snippet to apply the changes.

Variable
Example

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?