cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
milky_bar_may
Helper IV
Helper IV

Overlay: Password: Proceed

Hi Team

 

I have learned many things from your contributions - thank you. I hope to lean on your knowledge once more. 

 

I have a button that navigates to a screen when clicked. 

 

A request has come in to password protect the screen after the button has been clicked.

 

What I am trying to achieve when the button is clicked (onselect):

1. Bring an overlay

2. Bring a password protect screen

3. If password is entered correctly proceed but an error message if incorrect.

 

Any help to achieve this would be appreciated

 

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @milky_bar_may ,

Do you want to click a button and then navigate to a validation screen?

In the validation screen, you want these feathers:

1)Bring an overlay of the entering password

2)if you enter right password, you could proceed

3)if you enter wrong password, you will not continue

 

If so, I've made a similar test for your reference:

1)In screen1, insert a button to navigate to the validation screen.

Set the button's OnSelect:

Navigate(Validationscreen)

2)in validation screen, insert a textinput to enter password, a button to confirm.

set the textinput's Mode to password.

349.PNG

 Then the data that you entered in will become "..."

set the submit button's OnSelect:

If(LookUp(data source,email=User().Email,password)=TextInput1.Text,
   Navigate(Screen3),
   Notify("you've entered wrong password!",NotificationType.Warning)

//if you enter right password , you will navigate to next screen. if you enter wrong password, you will get a warning and will not navigate to the next screen.

3407.PNG

If you have any problems, could you tell me what is your data source that store the password and the password field's data type?

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
timl
Super User
Super User

Hi @milky_bar_may 

I posted something similar to this a while ago here.

https://powerusers.microsoft.com/t5/Building-Power-Apps/Loggin-screen-connected-to-an-excel-table/m-... 

What you can do in the OnSelect property of your button is to navigate to an interim screen. You can then use a variation of the formula that I posted above to authenticate the user.

If the user enters the correct username and password combination, you can then navigate the user to the screen that you want to display.

I would also express the same caution in that if you were to store the username and password combinations in the data source, there is the possibility that the user can directly access the data source and view the passwords.

eka24
Super User
Super User

This video from Shane Young address that
https://youtu.be/GiN47Is_634

If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
v-yutliu-msft
Community Support
Community Support

Hi @milky_bar_may ,

Do you want to click a button and then navigate to a validation screen?

In the validation screen, you want these feathers:

1)Bring an overlay of the entering password

2)if you enter right password, you could proceed

3)if you enter wrong password, you will not continue

 

If so, I've made a similar test for your reference:

1)In screen1, insert a button to navigate to the validation screen.

Set the button's OnSelect:

Navigate(Validationscreen)

2)in validation screen, insert a textinput to enter password, a button to confirm.

set the textinput's Mode to password.

349.PNG

 Then the data that you entered in will become "..."

set the submit button's OnSelect:

If(LookUp(data source,email=User().Email,password)=TextInput1.Text,
   Navigate(Screen3),
   Notify("you've entered wrong password!",NotificationType.Warning)

//if you enter right password , you will navigate to next screen. if you enter wrong password, you will get a warning and will not navigate to the next screen.

3407.PNG

If you have any problems, could you tell me what is your data source that store the password and the password field's data type?

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Many thanks @v-yutliu-msft , @eka24 , @timl .

 

I very much appreciate your help and my problem is resolved through your help

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,516)