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

Button Visibility Not working

Hi 

 

I have been trying to make this button only visible to certain users. But it isn't working when the other user opens up the app. Can you please assist?

 

I am not receiving any error messages. Not sure as to why it isn't working.

 

This is the formula I used below. 

 

MiteshGovan_0-1616160885689.pngMiteshGovan_1-1616161053349.png

MiteshGovan_2-1616161096276.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
RandyHayes
Super User III
Super User III

@MiteshGovan 

Your syntax is incorrect on the formula.

Please consider changing your Formula to the following:

(varCurrentMail = "arno.alber....com" || varCurrentMail = "sello.mab....com")

Fill in the email as you had (I shortened) and you don't need the If statement and true false stuff...it is redundant. 

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

Pstork1
Dual Super User III
Dual Super User III

The syntax for IF() is If(condition,result,condition,result).  You have two conditions in the first two arguments of your IF.  what you really want is to put an '||' (or) between the conditions

 If(varCurrentMail = "email@domain.com" || varCurrentMail = "email2@domain.com", true, false)

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
RandyHayes
Super User III
Super User III

@MiteshGovan 

Your syntax is incorrect on the formula.

Please consider changing your Formula to the following:

(varCurrentMail = "arno.alber....com" || varCurrentMail = "sello.mab....com")

Fill in the email as you had (I shortened) and you don't need the If statement and true false stuff...it is redundant. 

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

Pstork1
Dual Super User III
Dual Super User III

The syntax for IF() is If(condition,result,condition,result).  You have two conditions in the first two arguments of your IF.  what you really want is to put an '||' (or) between the conditions

 If(varCurrentMail = "email@domain.com" || varCurrentMail = "email2@domain.com", true, false)

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thank you

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (15,899)