Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

How do I customize the User relationship dropdown in collections?

default discord avatar
supakulast year
1

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 }'
  • default discord avatar
    brianjmlast year

    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 on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.