Skip to main content
Community site session details

Community site session details

Session Id : oNeJPdQZJ4HL6RoykQ+zno
Power Apps - Building Power Apps
Answered

Password with a button

Like (0) ShareShare
ReportReport
Posted on 22 Dec 2023 07:19:42 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:
  • ED-03090921-0 Profile Picture
    277 on 22 Dec 2023 at 10:22:15
    Re: Password with a button

    Thank you it's working

  • Verified answer
    mmbr1606 Profile Picture
    13,290 Super User 2025 Season 2 on 22 Dec 2023 at 09:26:13
    Re: Password with a button

    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 22 Dec 2023 at 07:48:28
    Re: Password with a button

    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 ?

  • mmbr1606 Profile Picture
    13,290 Super User 2025 Season 2 on 22 Dec 2023 at 07:37:25
    Re: Password with a button

    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?

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete