Is it possible to make passwordField show text instead of dots?

Is it possible to make passwordField show text instead of dots

Hi,

Unfortunately, PasswordField doesn’t provide the toggle password visibility functionality. I can suggest three possible solutions:

  1. Using TextField instead of PasswordField
  2. Creating a custom composite component that contains a field and a button to toggle password visibility and by clicking a button replacing field implementation from PasswordField to TextField and wise versa.
  3. Implementing an extension that will toggle HTML <input> element type between password and text.

Regards,
Gleb

Hello,
I’m also in need to do this implementation now.

Has any ready-to-use solution come to live meanwhile? :slight_smile:

Thanks in advance,
regards, HP

We have no plans to implement such functionality for Jmix 1x, instead Jmix 2x has it, see PasswordField demo.

Regards,
Gleb

Thanks,
I just read, that Vaadin 23 (jmix 1.5.x?) supports PasswordReveal functionality.
Can we set these Vaadin properties easily, even without Jmix wrapping?

Vaadin 23+ is used in Jmix 2.1+