AnsweredAssumed Answered

Why does the Checkboxes (plural) form field act like a boolean?

Question asked by Kelly Horton Expert on May 3, 2018
Latest reply on May 7, 2018 by Kelly Horton

Here's my dilemma, I want my opt-in field on my forms to be a String datatype not a boolean, because I want to know who hasn't opted in or opted out yet. So I add a field of type Checkboxes on a form, but it only has one value and that value stores a "yes" if the box is checked. My custom field is a datatype of String.


If someone submits that form without checking the box it stores a value of "no" as if it's a boolean field. I don't want it to change the field value at all if someone doesn't check the box. This is messing up my GDPR and CASL opt-out compliance time/date stamps. I want the value to be NULL if there's no action.


I am assuming I will have to add a second checkbox with a value of "no" and hide it with a display:none or something. Is this the only way around this?


Why does the Checkboxes field type act like a boolean if you only give it one value? Bueller? Bueller? Anyone?