# Hide answers

{% hint style="info" %}
To enable advanced hidding answer options for your multiple choice question, import the library as described in the [getting-started](https://synoint.gitbook.io/survey-library/getting-started "mention") section.
{% endhint %}

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

<table><thead><tr><th>Variable</th><th>Example</th></tr></thead><tbody><tr><td><strong><code>question_code</code></strong><br><br>The code of the multiple choice question you want to configure</td><td><p></p><pre class="language-javascript"><code class="lang-javascript">multiple_choice({
<strong>    question_code: "Q1",
</strong>});
</code></pre></td></tr><tr><td><strong><code>schema</code></strong><br><br>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 <mark style="color:red;"><strong>filter</strong></mark> or <mark style="color:red;"><strong>randomize in the same order</strong></mark>. Remove it if not needed.<br><br><span data-gb-custom-inline data-tag="emoji" data-code="1f4a1">💡</span> Use a descriptive name for the schema that indicates it is associated with a specific question code, such as <code>Q1_SCHEMA</code> or <code>Q1xSCHEMA</code><br><br><span data-gb-custom-inline data-tag="emoji" data-code="2139">ℹ️</span> <em>The open text should be placed in the same page of the multiple choice.</em><br><br><img src="https://3256950692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8ViByLqKSYWJoXIHUUnY%2Fuploads%2F3e3ClosuOgnE57zgEGh1%2Fimage.png?alt=media&#x26;token=a138db89-fc20-45ee-bae0-891477657d21" alt=""></td><td><p></p><pre class="language-javascript"><code class="lang-javascript">multiple_choice({
    question_code: "Q1",
<strong>    schema: "Q1xSCHEMA"
</strong>});
</code></pre></td></tr><tr><td><p><strong><code>hide_aswers</code></strong><br><br>This variable that is a list inside brackets [] with the answer codes in this multiple choice question you want to hide.<br></p><p>If not needed, just remove this entire block code and skip this tutorial <span data-gb-custom-inline data-tag="emoji" data-code="1f44d">👍</span></p><p><br><span data-gb-custom-inline data-tag="emoji" data-code="1f4a1">💡</span>Useful when need to remove answer options but custom Javascript codes depend of the existing options.</p></td><td><p></p><pre class="language-javascript"><code class="lang-javascript">multiple_choice({
    question_code: "Q1",
    schema: "Q1xSCHEMA",
    /* Other settings */
<strong>    hide_answers: [1, 2]
</strong>});
</code></pre></td></tr></tbody></table>
