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.

Relationship select results custom grouping

default discord avatar
itsjxck2 years ago
1

For example if I have a collection that has a

type

field, I'd like to group the options in the select field for a relationship by this

type

field, like how it is displayed when you allow relationship to multiple collections

  • discord user avatar
    jarrod_not_jared
    2 years ago

    This sounds like a customization that would need to be handled from opening the config to support this or using a custom component for this. I think a custom component would be the best move here, once we start work on our component library (specific for payload components, i.e. fields) that we want to open source it should be easier to get up and running with this approach.



    Follow along here:

    https://github.com/payloadcms/payload/discussions/293

    Relationship select results custom grouping

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.