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
Solved! Go to Solution.
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.
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.
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,
I posted something similar to this a while ago here.
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.
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.
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.
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,
Many thanks @v-yutliu-msft , @eka24 , @timl .
I very much appreciate your help and my problem is resolved through your help
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
199 | |
71 | |
50 | |
43 | |
30 |
User | Count |
---|---|
258 | |
124 | |
87 | |
85 | |
82 |