Is there a way to add a switchbutton as field to a tab (getCMSFields and addFieldToTab). Link the image below:
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
You could use something like http://ios-checkboxes.awardwinningfjords.com/ 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
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?