PDA

View Full Version : Problem reloading checkbox value from JSON



douggiefox
14 Jun 2010, 3:06 AM
Hi

I have a checkbox defined like this:



var chk = {
boxLabel: 'European Travel',
ref: '../../europe',
name: 'europe',
xtype: 'checkbox',
inputValue: true
};



When I reload the form the JSON returned looks like this:



{
"success": true,
"data": {
"id": 1,
"europe": true
}
}



All other fields on my form populate as expected. Any ideas why I'm struggling with the checkbox?

Best

DF