View Full Version : form.updateRecord() behaving strange

25 Sep 2013, 10:16 AM
Can anyone think of a good reason why the updateRecord() method uses getFieldValues() instead of getValues() to gather data from the form?

It has the unfortunate effect, that checkboxes are trying to update the record with true and false, instead of using the values specified in the inputValue and uncheckedValue configs...

Of course I can use form.getRecord().set(form.getValues()) instead, but isn't that what the updateRecord method should be there for???

27 Sep 2013, 11:51 AM
You suppose, that model's field for checkbox should accept 'on'/'off' (or other inputValues)? Well, I would consider 'on'/'off' presentational. Plus model needs to distinguish valid/invalid values.