Allow Custom "Empty State" Message for Relationship Fields in Admin UI #13294
muslewski
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when using a
relationship
field in the Payload admin UI, if there are no available items to select, the field displays a default "No options" message. This is functional, but in many use cases—especially when the available options are filtered dynamically—it would be much more user-friendly to allow admins to customize this empty state message.Feature request:
Add support for a property (e.g.,
admin.emptyStateMessage
) on relationship fields, so that when no options are available, a custom message can be shown instead of the default "No options". This would allow us to provide editors with helpful instructions, such as:Use case:
For example, if a relationship field is filtered to only show items that reference the current document, and none exist yet, the admin could display:
This small feature would improve the editorial experience and reduce confusion for content editors. Thank you for considering!
Beta Was this translation helpful? Give feedback.
All reactions