Skip to Content
Former Member
Jan 14, 2019 at 01:32 PM

How to make an enum dropdown editable in backoffice when it has a specific value?


Hi , I have an enum for status attribute and this is to be made editable for a usergroup only when it has the value "success". Also out of the 10 possible status values, only 2 should be selectable by this group. Any pointers on how it can be achieved?

I have thought about using AbstractCockpitEditorRenderer to identify the group and populate the dropdown accordingly.But how to make it editable only when specific value is set beforehand?

Any pointers will be helpful.