I have a collection where I added a relationship field to user. The dropdown shows the user's full name only, and I would like to modify that dropdown to instead be "Full Name ( email )". Is there a supported path to make this change?
For now, I've just updated the
admin.useAsTitle
to
email
. It'd be nice if I could use multiple fields in a specific format:
'{ name } - { email }'
The most common way to do this is to create a hidden field that contains the
useAsTitle
value you want to display, and populate it with a hook (
beforeRead
or
afterChange
).
Star
Discord
online
Get dedicated engineering support directly from the Payload team.