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.

Hide options from select

default discord avatar
LuisLopezlg2 years ago
1

is there any way to hide certain "options" from "select " field depending on the user's rol?



for example, i'd like to display less options for a normal user.

  • discord user avatar
    denolfe
    2 years ago

    This is not possible currently. We have some similar functionality for relationships with a

    filterOptions

    function, so this is something we might be able to do in the future.



    Feel free to submit a feature request, so we can discuss/prioritize with everyone.



    https://github.com/payloadcms/payload/discussions
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.