Jump to:

1999 Posts in 1408 Topics by 613 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: 357 Views
  • Joures
    Avatar
    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?

    357 Views
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.