Total newbie questions about a simple PHP search using addFindCriterion to match checkbox value.
I have 3 checkboxes in a field called "myChoices_field" containing the following choices - where "airport" is selected.
[ ] air
[x] airport
[ ] air vent
So that means that "myChoices_fld" contains only the value "airport".
If I do a search via PHP looking for a record that matches only the choice "air" - this is what I would use:
$findCommand->addFindCriterion('myChoices_field', "air");
I should expect it NOT to match anything since "air" does not equal to "airport". However - I'm getting back the record that matches "airport". Clearly - it's just doing a substring match.
How can I search a checked value that actually just searches the whole checked value - not do a substring search? I'm I completely missing where to find this in the documentation?
Pointing me to the documentation would help greatly. Thanks!