Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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)

  • BHaapi Profile Picture
    134 on at
    Re: Password protection PLUS dynamic navigation

    Seems to be working, thank you!!

  • Verified answer
    TheRobRush Profile Picture
    11,121 Super User 2025 Season 1 on at
    Re: Password protection PLUS dynamic navigation

    No. 

    TheRobRush_0-1693253477987.png

     

  • BHaapi Profile Picture
    134 on at
    Re: Password protection PLUS dynamic navigation

    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,121 Super User 2025 Season 1 on at
    Re: Password protection PLUS dynamic navigation

    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 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard