I am looking for a way to present the following to users. This will be a list of checkboxes:
[ ] Region 1 A
[ ] Region 1 B
[ ] Region 1 C
[ ] Region 1 D
[ ] Region 1 E
[ ] All of Region 1
[ ] Area 2
[ ] Area 3
[ ] Area 4
This would all be stored in the same field.
So there are two main things I want to be able to do:
1) When entering the data, the admin/user should be able to choose any of the options, but if the select "All of Region 1", it automatically selects all of the Region 1 choices along with the "All of Region 1" choice.
2) When site visitors are searching this field (through an exposed Views filter), if they choose to filter for "All of Region 1" they should get anyone who chose any one of the Region 1 areas as well as anyone who chose "All of Region 1".
One solution would be to just remove the "All of Region 1" option from the exposed filter.
Or have the "All of Region 1" option in the exposed filter also check all the region 1 options automatically.
Is this necessarily a hook_form_alter solution?