martinrame
17 Apr 2012, 7:56 AM
Hi, I have a form with a Checkbox field that I want to save using a store. The checkbox's definition si this:
xtype: 'checkboxfield',
id: 'active',
name: 'active',
fieldLabel: 'Active',
boxLabel: 'Customer is active',
checked: true,
anchor: '100%'
Now, when I get the form's values, I get:
active: "on"
And, when I save the store, the JSON generated changes to "..., "active": false, ...".
How can I define the values true and false instead of "on", to send them in the JSON?.
xtype: 'checkboxfield',
id: 'active',
name: 'active',
fieldLabel: 'Active',
boxLabel: 'Customer is active',
checked: true,
anchor: '100%'
Now, when I get the form's values, I get:
active: "on"
And, when I save the store, the JSON generated changes to "..., "active": false, ...".
How can I define the values true and false instead of "on", to send them in the JSON?.