Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » CheckboxField not set to checked in CMSFields

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 380 Views
  • micahsheets
    Community Member
    164 Posts

    CheckboxField not set to checked in CMSFields Link to this post

    Silverstripe 3

    DataObject ScheduleEvent managed in ModelAdmin.

    I have $db = array('AllDay" => "Boolean");

    and $defaults = array("AllDay" => '1');

    When I click new scheduleevent button I get the form for inputting the objects data. However even though it setting the value of the checkbox to 1 it does not set checked param to "checked" This means that on a new object create form the checkbox does not look like it is checked when it should.

    How are defaults populated in a create form for a dataobject?

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.