PDA

View Full Version : checkbox problem



sagardash
22 Jul 2010, 10:57 PM
Hi
i have some checkbox in my form.
when i check them its sending 'on' to backend(php) ... but it should send 0 or 1 ?
when i will not check then its not sending any thing to backend...so in backend its showing undefined error

Is there any configuration problem ?

THANKS

Condor
22 Jul 2010, 11:23 PM
That is normal behaviour for a checkbox (you can change 'on' to '1' by setting inputValue:'1').

If you also want it to send a value when unchecked then I recommend using the XCheckbox user extension (http://www.sencha.com/forum/showthread.php?25924-XCheckbox-A-nicer-checkbox-always-submitting-configurable-values).