Like what we’re doing? Star us on GitHub!

Hide options from select

LuisLopezlg
last month
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.

  • denolfe
    Payload Team
    3 weeks 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
Open the post
Continue the discussion in Discord
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More