I have need for a checkbox that uses 1 and 0 as values instead of true and false. I've defined the field in my datasource as type unsignedByte (instead of boolean, which causes the validator to complain) with an editor that is NativeCheckboxItem. There's nothing in the docs for either of the CheckboxItem implementations regarding setting the checked and unchecked values. CheckboxItem has a reference to setValueMap() but the only information is a warning about overriding it. I imagine the solution might involve defining a valueMap in the superclass FormItem, but I'm not sure what is required.
Recommendations?
Recommendations?
Comment