Default Value for Many-to-One Dropdown using $CURRENT_USER #22446
tinhXEM
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
This feature request aims to provide a default value for many-to-one dropdown fields using $CURRENT_USER. When creating a new item, the dropdown should automatically pre-select the current user's ID if applicable.
Basic Example
Motivation
Currently, Directus does not have a built-in way to automatically pre-select the current user's ID in many-to-one dropdown fields when creating a new item. This feature would save time and reduce errors in user selection, especially for collections where items are typically associated with the creator.
Detailed Design
The $CURRENT_USER variable should be supported as a default value for many-to-one dropdown fields. When a new item is created, the dropdown field will automatically select the current user's ID if the field is configured to use $CURRENT_USER as its default value.
Requirements List
Must Have:
Should Have:
Could Have:
Drawbacks
N/A
Alternatives
N/A
Adoption Strategy
N/A
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions