I have created a checkbox for my pages list view
'featured' => array('type' => 'checkbox', 'label' => 'Featured product?')
This works fine but how can I get the checkbox to set correctly when loading the list view? If it's set to 1 in the db then when the form loads the checkbox should be checked and vice versa. At the moment the checkbox always loads unchecked whatever the value in the database.
Comments
'featured' => array('type' => 'checkbox', 'label' => 'Featured product?','value' => 1)