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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

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

Add switch button as field to tab

Go to End

3 Posts   956 Views


Community Member, 6 Posts

1 June 2013 at 2:15am

Is there a way to add a switchbutton as field to a tab (getCMSFields and addFieldToTab). Link the image below:


Forum Moderator, 5523 Posts

2 June 2013 at 2:40pm

You could use something like to enhance the default SilverStripe CheckboxField type. Require the javascript / css you need for the button using LeftAndMain::extra_requirements_javascript & LeftAndMain::extra_requirements_css


Community Member, 6 Posts

4 June 2013 at 7:52am

I've been looking at the CheckBoxField.php in the framework/forms folder, but have no idea how to enhance it (I am still a beginner with silverstripe). Can you help me in the right direction?