PDA

View Full Version : What should checkboxes' dirty value be ?



henry42
22 May 2012, 4:17 AM
example
checkbox A name is nameA value is valueA
checkbox B name is nameA value is valueB
the original status is A is checked.
so the form's getValue is { nameA : 'valueA' }
and then I check B , what should form's dirty value?
i think is { nameA:[ 'valueA' , 'valueB'] }
but now is { nameA:'valueB' } which is useless for me ,
because checkbox's diry value now can not describe uncheck status.

mitchellsimoens
22 May 2012, 6:13 AM
Ext JS or Sencha Touch and what version?

henry42
22 May 2012, 9:45 AM
Ext JS or Sencha Touch and what version?
extjs 4+
i submitted a bug http://www.sencha.com/forum/showthread.php?206158-combobox-and-checkbox-do-not-work-properly-in-form-when-blank

that's about blank checkbox , now i still wanna know what should checkboxes' dirty value be ?