Changing Text Field Type on Click

Hi everyone,

I’m looking to create a masked Password field using the “Text Field” widget (easy enough), but I’d also like to let the user see the masked value when a button is clicked.

Is there a way to change the type of Text Field (i.e. from “Password” to “Text”) during a click event?

Thanks in advance,

David

No. Use two fields instead, one password and one not. Your button just changes which one is visible. It’s not perfect, because of things like losing cursor position, but you can at least switch focus to the newly visible one.

Use the Text Change event to keep the text synced between each.

1 Like

Ah, gotcha. Thanks for the details!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.