Schema describes boolean, string found instead when I create list through Mailchimp API
<p>I'm new at developing Mailchimp application.
and I'm trying to create list through Mailchimp API.
anyone has same issue with this error?</p>

<p>Here is my HTML code for checkbox input:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input id="email_type_option" type="checkbox" name="email_type_option" value="true"&gt;
&lt;input id="email_type_optionHidden" type="hidden" name="email_type_option" value="false"&gt;</code></pre>
</div>
</div>
</p>

<p>and here is the script to save function:
I used this conditional:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>if (document.getElementById('email_type_option').checked) {
    document.getElementById('email_type_optionHidden').disabled = true;
} else if(document.getElementById('email_type_option')) {
    document.getElementById('email_type_optionHidden').disabled = false;
}</code></pre>
</div>
</div>
</p>

<p>and the response from API is:</p>

<pre><code>"{"type":"http://developer.mailchimp.com/…/mai…/guides/error-glossary/","title":"Invalid Resource","status":400,"detail":"The resource submitted could not be validated. For field-specific details, see the 'errors' array.","instance":"","errors":[{"field":"email_type_option","message":"Schema describes boolean, string found instead"}]}"
</code></pre>

<p>I tried to put boolean value at my checkbox input but it always return to that error.</p>

<p>if I console.log this on browser it shows right to boolean value but I don't know why still got that error when I send it.</p>

<p>I want to make this value return into boolean not a string like the error says.
How to fix it?</p>