> For the complete documentation index, see [llms.txt](https://synoint.gitbook.io/survey-library/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://synoint.gitbook.io/survey-library/source-code-api/single-choice-reference/hide-answers.md).

# Hide answers

{% hint style="info" %}
To enable advanced hidding answer options for your single choice question, import the library as described in the [Getting started](/survey-library/getting-started.md) 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 single choice question you want to configure</td><td><p></p><pre class="language-javascript"><code class="lang-javascript">single_choice({
<strong>    question_code: "Q1",
</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 single 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">single_choice({
    question_code: "Q1",
<strong>    hide_answers: [1, 2]
</strong>});
</code></pre></td></tr></tbody></table>
