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.

type='password' on TextField input

default discord avatar
7wonders2 years ago
4

Is there a quick and easy way to add the 'password' type on the default text field? I am guessing not. It would be a nice feature to add to the admin config for text fields i.e. secure=true or whatever. In the meantime, whats the absolute easiest way to override the default TextField component with type='password'?



Well I guess:


import Password from 'payload/dist/admin/components/forms/field-types/Password' admin: { components: { Field: Password } }
  • default discord avatar
    dsod2 years ago

    This is how I did it as well.

  • default discord avatar
    7wonders2 years ago

    Great minds think alike 😉

  • default discord avatar
    dsod2 years ago

    For sure! 😄

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.