Unanswered: Posting 'true-false' on 'check' and 'uncheck' of checkbox
Unanswered: Posting 'true-false' on 'check' and 'uncheck' of checkbox
Hi,
I have a form containing many 'checkboxes'. The values for those checkboxes are being posted as 'on'/'off'. But instead I want to use 'true'/'false'. How can this be achieved?
Which framework are you useing ? if it is 4.1.x then default value of check box is on/off.
you can also use inputValue config of check box.
For more info read API docs -http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Checkbox-cfg-inputValue
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
Which framework are you useing ? if it is 4.1.x then default value of check box is on/off.
you can also use inputValue config of check box.
For more info read API docs -http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Checkbox-cfg-inputValue
Thanks Sword, I went through the link and saw using 'inputValue' property by setting it to 'true' but its not working as even though I leave checkbox unchecked, the value is being passed as 'true' which is unexpected.
Is there some other way to work out?