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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Password with a button
Power Apps
Answered

Password with a button

(0) ShareShare
ReportReport
Posted on by 277

Hi,

I'm creating an app on Power apps, I'm asking if it's possible to have a password when i click on a button.

If yes, can you help me to do it please 

Thank you

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2026 Season 1 on at

    hey @Eliot_DECRION 

     

    what exactly do you mean? Do you want ti have a password generator in powerapps? So whenever you click the button, it gives you a random string of letters and numbers as a password?

  • ED-03090921-0 Profile Picture
    277 on at

    Hi @mmbr1606 ,

    No I have some screen which are accessible by clicking on a button. I want that when I click on this button, it asking a password, then I enter the password and I can access on the screen.

    Is it possible ?

  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2026 Season 1 on at

    should be possible yes

     

    try this:

     

    Put this in the Onstart of your app, or even better to the OnVisible of a screen:

    // Replace 'YourPassword' with the actual password or fetch it securely
    Set(correctPassword, "YourPassword");

     

    This on the onselect of the button:

    If(
    TextInput1.Text = correctPassword,
    Navigate(TargetScreen, ScreenTransition.None),
    Notify("Incorrect password", NotificationType.Error)
    );

     

    Replace the Textinput1.Text with the name of your Textinput control

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • ED-03090921-0 Profile Picture
    277 on at

    Thank you it's working

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard