I'm attempting to override the checkboxfield getValue method so that on a FormPanel.getValues() or using CheckBoxField.getValue() I get true or false instead of true and null. I've read various posts and see that the following was recommended.
Ext.define('Override.form.field.Checkbox', {
override: 'Ext.form.field.Checkbox',
getValue: function () {
return this.checked ? true : false;
}
});
However, that doesn't appear to be working. How can I get true and false for CheckBoxField when used in a FormPanel or just accessing the component?