diff --git a/forms/CheckboxField.php b/forms/CheckboxField.php index 864304f2d..af35f25a6 100755 --- a/forms/CheckboxField.php +++ b/forms/CheckboxField.php @@ -19,7 +19,7 @@ class CheckboxField extends FormField { 'class' => ($this->extraClass() ? $this->extraClass() : ''), 'id' => $this->id(), 'name' => $this->Name(), - 'value' => 1, + 'checked' => $this->value ? 'checked' : '', 'tabindex' => $this->getTabIndex() );