title: How to get only checked elements from a form in shopify?
body: <pre><code>{% assign type_bonbon = &quot;Sans sucre, Gélifié, Guimauve, Nougat, Acide, Doux&quot; | split : &quot;, &quot; %}
  &lt;section class=&quot;page__content&quot;&gt;
    {% capture contact_form %}
      &lt;div class=&quot;contact&quot;&gt;
        {% form 'contact', class: 'contact__form' %}
          &lt;div class=&quot;form__control&quot;&gt;
              &lt;label class = &quot;form__label&quot; for=&quot;contact__type_bonbon&quot;&gt;Types de bonbons&lt;/label&gt;
              {% for type in type_bonbon %}
                &lt;div class = &quot;checkbox&quot;&gt;
                  &lt;input type=&quot;checkbox&quot; id=&quot;contact__type_bonbon&quot; name=&quot;contact[type]&quot; value=&quot;{{type_bonbon}}&quot;&gt;{{type}}
                &lt;/div&gt;
              {% endfor %}
          &lt;/div&gt;
        {% endform %}
      &lt;/div&gt;
    {% endcapture %}
  &lt;/section&gt;
  </code></pre>
  <p>Hello everyone,
  I am struggling to Get every checked values within the checkbox.
  Right now im getting only the last checked value
  I know in PHP we would use the GET method in order to put the &quot;checked&quot; method to every checkbox checked, however, idk how to proceed in shopify.</p>
  <p>Thank you again</p>