MODX Community

Group checkbox in ClassExtender

I have a group of checkboxes like so

<input type="checkbox" name="categories[]" value="architectural" id="architectural" data-parsley-errors-container="#checkError" required>
<input type="checkbox" name="categories[]" value="support" id="support" data-parsley-errors-container="#checkError" required>
<input type="checkbox" name="categories[]" value="government" id="government" data-parsley-errors-container="#checkError" required>
<input type="checkbox" name="categories[]" value="consulting" id="consulting" data-parsley-errors-container="#checkError" required>

I need to represent the individual categories in the user profiles that the form creates and i need them to have the same name for validation purposes, i am unsure of how to go about this and would love some input.

Thanks in advance.

Not really a ClassExtender question, but if you look at the accepted answer here, I think it will help. Unchecked checkboxes will not appear in the array.

you are correct,
thanks @bobray