cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
djreyes1110
Helper V
Helper V

Show/Hide Button In Power Apps Based On The Current User

Hi I have set up an onstart in powerapps but when I add multiple emails I dont see the buttons. 

 

Set(varUserEmail, User().Email);
Set(varIsFleet, varUserEmail = ("email1@email.com"; "email2@email.com")

 

But when I add more than 1 email the submit button wont show anymore.

I know I am doing something wrong. Please help.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Abhilash_Swain
Super User
Super User

Try using In operator instead of =. 
Set(varUserEmail, User().Email);
Set(varIsFleet, varUserEmail in Concatenate("email1@email.com", "email2@email.com"));

View solution in original post

3 REPLIES 3
Abhilash_Swain
Super User
Super User

Hi @djreyes1110 ,
Are you trying to compare VarUserEmail (Which is basically current user) is in the list of {"Email1";"EMail2";{Email3"... So on}?

Not to compare but only those email that are added can access the button in powerapps.

Abhilash_Swain
Super User
Super User

Try using In operator instead of =. 
Set(varUserEmail, User().Email);
Set(varIsFleet, varUserEmail in Concatenate("email1@email.com", "email2@email.com"));

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,440)