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've moved the forum!

Please use 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.

General Questions /

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

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

Dynamic Enumerator

Go to End



Community Member, 3 Posts

17 September 2017 at 10:17am

Edited: 17/09/2017 10:25am

I'd like to have my custom class extending DataObject, and having a $db field which is an Enum that the user is able to populate in the CMS.

Is it possible? how?

The result I want to achieve is having the CMS users be able to create new data objects, and also choose possible values for specific properties of the objects themselves. In the end it should be possible to create a front end form, to filter data objects based on the values that the CMS users choose.

Alternatively, what is a workaround to achieve the result?