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 / Conditional Visibility...
Power Apps
Answered

Conditional Visibility based on multiple users emails

(0) ShareShare
ReportReport
Posted on by 20

Hello,

 

I am trying to set a button to be only visible for certain admin users. On start up of the app I set varUser:

 

Set(varUser,User());

 

In the button is where I have  the visible setting with:

 

varUser.Email = "user1@email.com" Or "user2@email.com" Or "user3@email.com"

 

 

This function recognizes the first email and allows the button to be visible to the first admin listed, but user2 and user3 admins are not able to view the button. Please help, I've tried using:

|| instead of Or
but this does not work.

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,573 Most Valuable Professional on at

    You can't just OR the values.  You have to OR the whole equation.

    if(varUser.Email = "user1@email.com" Or varUser.Email = "user2@email.com" Or varUser.Email = "user3@email.com", true, false)
  • garrettl Profile Picture
    20 on at

    Yes this works! thank you for the help

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard