PDA

View Full Version : Problem with serialize to json string



Sergey_Trigub
23 Nov 2010, 7:46 AM
Hi.
How to serialize the form with checkboxes as boolean values, not string values like 'on' or 'off'?


Ext.encode(form.getForm().getValues(false))

Condor
23 Nov 2010, 7:58 AM
Use getFieldValues() instead of getValues().

Sergey_Trigub
23 Nov 2010, 8:03 AM
Thank you very much!