I load form data from server and filling form with it.
var form = this.getPForm().getForm().load({
url: '/url',
params: {
id: record.get('id'),
},
});
All goes OK except one checbox, which doesn’t get checked even its input data is true
{
fieldLabel: 'name',
name: 'name',
minLength: 5,
maxLength: 80,
}, {
xtype: 'checkbox',
fieldLabel: 'Yes?',
name: 'yes',
inputValue: '1',
uncheckedValue: '0',
listeners:{
change:function(c){
alert(c.getValue());
}
},
},
On Form load I get true alert message informing that form data has acheved checkbox and is changing. But checkbox doesn’t get checked!
Resolved my issue. Problem was in same
nameproperties at two different checkboxes. Thank all for taking time.