Submitting checkbox data from a front-end form for a 'Categories' Field Type I have read a few docs about front-end forms such as the Checkbox field docs.

Although that doc doesn't seem to give an example of what I need.

I have a 'categories' field type. I am creating a front-end form that will need to submit what is checked to the entry. I have tried a few different ways and can't get it to work. This is the last code I tried:

&lt;label for="designTags"&gt;Design Tags&lt;/label&gt;

{% set categories = craft.categories.group('designs') %}

{% for category in categories %}
    &lt;input type="checkbox" id="designTags" name="fields[designsTags][]" value=" {{ category.id }}"&gt; {{ category.title }} &lt;/input&gt; &lt;br /&gt;
{% endfor %}


I also tried changing category.title to category.id, but no luck with that either. 

And before that, I tried something similar to the code at the bottom of this page (using the option.value) and it still wouldn't work.

Any help you can give is greatly appreciated! :)
I just tried your code and it worked.

Is your entry getting saved at all? If not I assume there might be another error. Add this to your code to output all form errors:

{% if entry is defined %}
    {{ dump(entry.getErrors()) }}
{% endif %}


Although it didn't made a difference in my test, you should remove the space to be sure:

value="{{ category.id }}"