OK, I figured out the first part, I think. I need to add every field that has a type of ‘checkbox’. So my variable/array will look like:
$checkboxes = array("m_field_id_9,m_field_id_11");
because I currently have two checkbox fields. (Yes, I should have read this thread a little more carefully…)
The second part of my post is still a little fuzzy for me. Can I make a single field with type of ‘checkbox’ and store multiple values? For example, a field called “Interests” that has 3 possible choices. I assume the code would look like so:
<label><input name="m_field_id_11[]" type="checkbox" value="whatever1" /> whatever1</label>
<label><input name="m_field_id_11[]" type="checkbox" value="whatever2" /> whatever2</label>
<label><input name="m_field_id_11[]" type="checkbox" value="whatever3" /> whatever3</label>
OR: do all of the choices themselves (whatever1, whatever2, etc) need to be custom fields set to type ‘checkbox’? Which means my checkbox array would look more like this:
$checkboxes = array("m_field_id_9,m_field_id_11,m_field_id_12,m_field_id_13");
and the markup would look more like:
<label><input name="m_field_id_11" type="checkbox" value="whatever1" /> whatever1</label>
<label><input name="m_field_id_12" type="checkbox" value="whatever2" /> whatever2</label>
<label><input name="m_field_id_13" type="checkbox" value="whatever3" /> whatever3</label>
Just not sure which way I need to go with this, and I’m starting to think it’s the latter, because I’m not sure how you would populate the multiple checkbox choices in the first example, if they’re not pulling from the field name. Thanks for your help!