Hide answers

To enable advanced hidding answer options for your multiple choice question, import the library as described in the Getting started section.

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

Variable
Example

question_code The code of the multiple choice question you want to configure

multiple_choice({
    question_code: "Q1",
});

schema This variable represents an open text field where answer codes will be stored. It is only required if you plan to use this question to filter or randomize in the same order. Remove it if not needed. πŸ’‘ Use a descriptive name for the schema that indicates it is associated with a specific question code, such as Q1_SCHEMA or Q1xSCHEMA ℹ️ The open text should be placed in the same page of the multiple choice.

multiple_choice({
    question_code: "Q1",
    schema: "Q1xSCHEMA"
});

hide_aswers This variable that is a list inside brackets [] with the answer codes in this multiple choice question you want to hide.

If not needed, just remove this entire block code and skip this tutorial πŸ‘

πŸ’‘Useful when need to remove answer options but custom Javascript codes depend of the existing options.

multiple_choice({
    question_code: "Q1",
    schema: "Q1xSCHEMA",
    /* Other settings */
    hide_answers: [1, 2]
});

Last updated

Was this helpful?