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
Thank you it's working
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
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 ?
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?
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2