I am (again) struggling with how to keep the value in a Channel Form when showing category as checkboxes. There are quite a few posts here but I seem not to find the answer. Please, who can help me here with a piece of code that really works. This is my code, this does NOT keep the value.
{categories show_group="5"}
<label class="checkbox">{category_name}
<input type="checkbox" id="{category_id}" name="{category_id}[]" value="{category_id}"{checked}>
</label>
{/categories}
Thanks, and a Happy New Year