I want to output category groups as checkboxes, I've got them outputting correctly however when they are selected and the form is submitted they aren't actually being assigned to the chosen categories suggesting I haven't got them quite right.

here's the code:

{exp:channel:form channel="work" return="contribute/thanks"}
            <input type="hidden" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">

          {categories show_group="4"} {!-- formats --}
            <label class="checkbox">{category_name}
            <input type="checkbox" id="{category_id}" name="{category_id}[]" value="{category_id}">



Any ideas on what i'm doing wrong?

2 Answers 2


You're currently giving them all a different name, so they won't be recognised as the category field.

Try name="category[]" and if that doesn't work, try name="category[data][]"

Also, make sure you add in {selected} to keep the values if it returns in error.


I am agree wiht Jammooka u must use name="category[]" as u can see in the document here:


but in your code u must use {checked} instead off {selected} to make it work with your checkboxes .


Your Answer

