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.

General Questions /

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

ChechboxField Checked


Reply


615 Views

Avatar
Mo

Community Member, 514 Posts

2 September 2010 at 9:21pm

Hi All,

I am generating a CheckboxField that I want to be checked by default. I am using:

new CheckboxField('isAdmin','Is this user an Administrator?',1));

But this doesn't do anything.

Any thoughts?

Mo