Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Checkbox won't update value

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 368 Views
  • Joures
    Community Member
    7 Posts

    Checkbox won't update value Link to this post

    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?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.