web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : Rtzpj6+9e0P9M8KxFT2TSD
Power Apps - Building Power Apps
Answered

Button to change text input mode from password to single line

Like (0) ShareShare
ReportReport
Posted on 3 Oct 2018 01:37:39 by 19

I have a value that is semi-sensitive, so we don't want it displayed by default. So I have set the text input mode to password. However, we may need to know what the value is, or change it.  Is there a way to change the field mode to single line via a button press? I can't seem to figure out how... I've been experimenting around TextInput1.Mode = SingleLine

Categories:
  • dsghi Profile Picture
    19 on 03 Oct 2018 at 03:50:55
    Re: Button to change text input mode from password to single line

    Thank you! Minor syntax adjustments, but you got me there. I was clearly over thinking it. 🙂

     

    In button OnSelect 

    UpdateContext({varInputMode:!varInputMode})

     

    Text Input Mode

    If(varInputMode=true,TextMode.SingleLine,TextMode.Password)
  • Verified answer
    KickingApps Profile Picture
    628 on 03 Oct 2018 at 02:53:48
    Re: Button to change text input mode from password to single line

    @dsghi

    Set your button to a variable:

    UpdateContext(

         varInputMode, !varInputMode)

    })

    Set the Mode of the Text Input box to the following:

    If(
    varinputMode = true,
    TextMode.Password,
    TextMode.SingleLine)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete