Hi
We’re trying to setup a form that allows a member to add or remove a category from parent category.
There’s only one category available to the parent, and all we want to do is allow the user to enable or disable it by checking / unchecking a box.
We have a form that allows them to edit the parent entry which works fine for the other fields, but we need to allow them to turn on and off the category.
We have it setup as outlined below, but this doesn’t seem to be working?... :(
Furthermore, in the future we’d like to be able to do this for multiple different categories and create more checkboxes, but not sure how to proceed?
Thanks!
{exp:channel:form
channel="parent_channel"
author_only="no"
include_jquery="yes"
datepicker="no"
entry_id="{id}"
return="parent_channel/edited"
parse="inward"
}
{categories}
<input type="checkbox" name="category[data][]" id="{category_name}" value="{category_id}">
<label for="{category_name} {checked}">Enable Category</label>
{/categories}
<input type="submit" value="Save Changes">
{/exp:channel:form}