Greetings
In a Safecracker form I have a hidden field where I’m setting a Category ID via JS based on the user’s selections in the form. It all works fine when just one category ID is added to the value parameter but I can’t figure out how to get multiple categories assigned.
Here’s my input field:
<input type="hidden" name="category[]" id="categories" value="" />I’ve tried comma and pipe separated values but neither works. What is Safecracker looking for when it processes the form in order to get it to add the multiple values into the category_posts table?
Or is the answer to have multiple hidden fields for each one?