How can I capture the value of a checkbox field?