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 protection PL...
Power Apps
Answered

Password protection PLUS dynamic navigation

(0) ShareShare
ReportReport
Posted on by 134

Hi there!

I have an app that has a table (this is part of the 35 or so lines):

BHaapi_0-1693246091715.png

based on this video:

https://www.youtube.com/watch?v=3DhShmNKHmc

ETC, I have a login screen

BHaapi_1-1693246171172.png

but I need to check that the Facility and Password match before the navigation part. in the video, it only covers the password match. I have fumbled for hours trying to get the context variable to load the screen part, like it does in the video, but cant seem to do it if the password and facility match. 

It was an attempt to also combine this video:

https://www.youtube.com/watch?v=BN74SsN4mm8

which doesn't have the dynamic navigation part.

 

is there a way to check that the facility and password match, then dynamically navigate to the screen on the table?

 

this is my 50'th attempt, there were better ones but i stopped saving all the variations somewhere along the way:

btnOnStart://redirect and notify
If(
IsBlank(
LookUp(
colRedirect,
Facility_Location = VarGlobalFacilityBox.Selected.Value && Key = UserKey.Text
)
),
UpdateContext({locResult: UserKey.Text}),
Notify(
"Sorry, that combo is incorrect",
NotificationType.Error,
3000
)
);
Navigate(locResult.Screen,ScreenTransition.CoverRight);
Set(
GlobalPassword,
UserKey.Text
);
//preload contraband log information
Select(ContrabandLogButton)

Categories:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    I would just, upon loading the screen set a context variable (in the screens onvisible to

    UpdateContext({siteCheck, LookUp(colRedirect, Facility_Location="PutYourDefaultSiteOnDropdownListHere")})

     

    then on the onchange of the dropdown for site set to 

    UpdateContext({siteCheck, LookUp(colRedirect, Facility_Location=dropdownname.Selected.Value)})

     

    now this siteCheck contextvariable will not only include the site name but the password for it, so instead of doing anymore lookups you just check if the password matches the passwod stored in siteCheck, which already contains the site name matched to the password 

  • BHaapi Profile Picture
    134 on at

    Just to clarify, you mean to have another dropdown asking for which landing page they need?

    Facility_Location="PutYourDefaultSiteOnDropdownListHere")})

    They wouldn't really know which page they should be landing on without it being explained to them(in great, great detail). each facility has members that could land on one of 4 pages (the 4 landing screens that the passwords take them to are supposed to be AdminHome, SecretaryHome, Contraband, FacilityHome)

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    No. 

    TheRobRush_0-1693253477987.png

     

  • BHaapi Profile Picture
    134 on at

    Seems to be working, thank you!!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard