Hide answers
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
question_code
The code of the multiple choice question you want to configure
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.
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.