Select only one value from a checkbox field in a condition