Add support for Enum fields #4887
Replies: 8 comments 13 replies
-
We'll need to look into SQL vendor support for this, but I imagine the process of adding this to be:
|
Beta Was this translation helpful? Give feedback.
-
HI team !) |
Beta Was this translation helpful? Give feedback.
-
Heya! Thanks for opening this feature request! This feature request has received over 15 votes from the community. This means we'll move this feature request to the Under Review state! The Core team will schedule a meeting to review this request as soon as possible. The discussion will then be approved or denied. You may or may not be invited to join this meeting with the core team. For more information, see our Feature Request Process. |
Beta Was this translation helpful? Give feedback.
-
Any update ? 🙏 The absence of such a feature is a deal breaker for us 😢. |
Beta Was this translation helpful? Give feedback.
-
@rijkvanzanten any update on this? Currently, it shows no options for interface or display: |
Beta Was this translation helpful? Give feedback.
-
Just having dropdown Interface to handle enums, that Admin can once setup, will be quite beneficial than not having any support at all. |
Beta Was this translation helpful? Give feedback.
-
@SharadKumar
{
"collection": "organization",
"field": "type",
"type": "unknown",
"meta": {
"collection": "organization",
"conditions": null,
"display": "raw",
"display_options": null,
"field": "type",
"group": null,
"hidden": false,
"interface": "select-dropdown",
"note": null,
"options": {
"choices": [
{
"value": "startup",
"text": "Startup"
},
{
"value": "incubator",
"text": "Incubator"
},
{
"value": "enterprise",
"text": "Enterprise"
}
]
},
"readonly": false,
"required": true,
"sort": 4,
"special": null,
"translations": null,
"validation": null,
"validation_message": null,
"width": "half"
},
"schema": {
"name": "type",
"table": "organization",
"data_type": "\"OrganizationType\"",
"default_value": null,
"max_length": null,
"numeric_precision": null,
"numeric_scale": null,
"is_nullable": false,
"is_unique": false,
"is_primary_key": false,
"is_generated": false,
"generation_expression": null,
"has_auto_increment": false,
"foreign_key_table": null,
"foreign_key_column": null
}
}
Notes: Currently, I haven't been able to implement this with a multi-select dropdown. In Postgres, the format for a list of enums is I hope this solution is helpful. |
Beta Was this translation helpful? Give feedback.
-
I would like to be able to group by enum fields on the Kanban Layout. |
Beta Was this translation helpful? Give feedback.
-
Not allow to change or work with enum type from MySQL 8. In order to change smth for field, I need to modify settings directly in database in
directus_fields
tableMy version of directus -- Directus 9.0.0-rc.51
DB -- MySQL 8
deployment -- npx
Beta Was this translation helpful? Give feedback.
All reactions