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 / PopUp Message On SubMe...
Power Apps
Unanswered

PopUp Message On SubMenu Selection

(0) ShareShare
ReportReport
Posted on by 17

 

menu.PNG

 

Pls I need help on what to do.....

i want a pupup box of Access Denied message when the login user try to click the submenu  (manager Approver) when is email is not manager email.

 

At Onstart of the App where the parent menu and submenu is created.

 

i try to use the if statement in between the screen navigation

 

{Title:"Manager Approver",Screen:If(!IsBlank(LookUp(procure_access_page,Title=lbl_userid_access_6.Text)),
(scr_manager_approver),Set(VarShowPopup), Id:1,ParentTab: "Procurement"},

 

 

but error that the statement is expecting a control and not boolean show up.

How best can i do this ?

Categories:
I have the same question (0)
  • RJM07 Profile Picture
    801 on at

    Try 

    Value(lbl_userid_access_6.Text)

  • JimohNA27 Profile Picture
    17 on at

    @RJM07 is it at the false of the if statement .............. because Ibl_userid_access_6 pointing to login User email address. which was compare with the Manager email in the procure_access_page sharepoint list

  • RJM07 Profile Picture
    801 on at

    Yeah, i mean it's the only bit i can see that looks as if it could be in the wrong datatype... Just thinking from my own experience anyway

     

    {Title:"Manager Approver",Screen:If(!IsBlank(LookUp(procure_access_page,Title=Value(lbl_userid_access_6.Text))),
    (scr_manager_approver),Set(VarShowPopup), Id:1,ParentTab: "Procurement"},
  • JimohNA27 Profile Picture
    17 on at

    Show error! incompatible types for comparison......Only text and Number can be compare

  • RJM07 Profile Picture
    801 on at

    Can you send a screenshot so i can see which bit is erroring?

  • JimohNA27 Profile Picture
    17 on at

    As requested.

    JimohNA27_0-1676557343423.png

     

  • JimohNA27 Profile Picture
    17 on at

    The ShowPopUp is the variable for the Access deny popup box

  • RJM07 Profile Picture
    801 on at

    Says your 'IF' statement has an error... but i can't see an 'IF' statement?

    Is it hidden behind that popup box?

     

  • JimohNA27 Profile Picture
    17 on at
    Title:"Manager Approver",Screen:If(!IsBlank(LookUp(procure_access_page,Title=(lbl_userid_access_6.Text))),
    (scr_manager_approver),Set(VarShowPopup), Id:1,ParentTab: "Procurement"},
  • RJM07 Profile Picture
    801 on at

    Ahh it's that bit, I didn't realise...

     

    could it be that there is a typo in Procurement? you're missing the o

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard