Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions

Checkbox won't update value


Reply

378 Views

Avatar
Joures

13 October 2011 at 6:44am Community Member, 7 Posts

Got some problems with a checkbox.
Here's my code:

static $db = array(
'OwnerName' => 'Text',
'VehicleRegNum' => 'Text',
'Installed' => 'Boolean'
);

function getFrontendFields(){

$fields = $this->scaffoldFormFields();

return $fields;

}

This returns a checkbox for the boolean field, but there's nothing boolean about it.
The value never gets updated no matter how many times i uncheck and check the box.

Any ideas?