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.

Can we make text fields type="password" ?

default discord avatar
superwafflepuffslast year
3

I have use case where I'd like end users to be able to toggle an input to password mode for sensitive data. Is this doable with the standard text input?

  • default discord avatar
    notchrlast year

    Good morning

    @468611525847023617

    - I feel like I've seen this done elsewhere, but I'm blanking. I'll search a bit more, but in general I believe this is done with a custom component

    https://payloadcms.com/docs/fields/overview#custom-components

    Though, it may be some kind of extended custom Field based on the Text field



    If I find the example I'll post it here - also a Payload dev may have some more insight when they see this post

  • default discord avatar
    superwafflepuffslast year

    No doubt this could be done with a custom component. I was mostly wondering if there was a way to use the regular text config and just change the type of the input. Although, now that i'm thinking more about the use case a custom field my better suit my needs.

  • default discord avatar
    jordi_73306_85757last year

    We still need something like this.


    A field type "password" would be handy or maybe we can get this by a plugin... maybe?


    Let me know if there is any solution to this problem out there already, ok?

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.