I have a Field Pack - Checkbox field (named doctors_schedule_now) with the following values:
nephrology : Nephrology
pediatric-nephrology : Pediatric Nephrology
In my entry, I'm checking the box for Nephrology. This populates in my DB field like this:
nephrology
Then I'm using Low Search to search in this custom field. This is the parameter I'm passing in the exp:low_search:results tag:
search:doctors_schedule_now='nephrology'
This search parameter will return entries that have both "pediatric-nephrology" and "nephrology" checkboxes chosen. This is not what I want, so I modified the search parameter like this (with exact matching):
search:doctors_schedule_now='=nephrology'
This will return only entries with the "nephrology" checkbox chosen - great! But wait. If I choose both checkboxes - "nephrology" and "pediatric-nephrology", it populates my DB like this:
nephrology(paragraph return)pediatric-nephrology
Now I can no longer use the exact parameter because the field has multiple values. And, I still need to return entries ONLY entries with "nephrology" chosen. So, I cannot use the parameter like this:
search:doctors_schedule_now='nephrology'
Because it returns entries that have either "nephrology" OR "pediatric-nephrology" checkboxes chosen. In other words, this search parameter returns not only "nephrology" but also "pediatric-nephrology"