cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FlowFail
Helper II
Helper II

Multiple users to be added to Displaymode.Edit?

Hello

 

I'm trying to add multiple users to a "Displaymode.Edit" function but can't seem to get it to work properly.

 

I had single user as follows:

 

If(VarUser.Email = "User1's email", DisplayMode.Edit, DisplayMode.View) - This worked fine.

 

I then tried to add another user as follows:

 

If(VarUser.Email = "User1's email, User2's email", DisplayMode.Edit, DisplayMode.View) - This did not work.

 

I then tried multiple different varieties of the above to no avail such as:

 

If(VarUser.Email = "User1's email" Or "User2's email", DisplayMode.Edit, DisplayMode.View) - This also did not work.

 

Can someone point me in the right direction please?

 

I don't think this makes a difference but this is relating to a customized Sharepoint form.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
DanishIslam
Resolver I
Resolver I

hi,

 

Change your If syntax to this-

 

If(Or(VarUser.Email = "User1's email, VarUser.Email = User2's email"), DisplayMode.Edit, DisplayMode.View)

 

OR

 

If(VarUser.Email = "User1's email || VarUser.Email = User2's email", DisplayMode.Edit, DisplayMode.View)

 

Hope this helps.

 

 

View solution in original post

2 REPLIES 2
DanishIslam
Resolver I
Resolver I

hi,

 

Change your If syntax to this-

 

If(Or(VarUser.Email = "User1's email, VarUser.Email = User2's email"), DisplayMode.Edit, DisplayMode.View)

 

OR

 

If(VarUser.Email = "User1's email || VarUser.Email = User2's email", DisplayMode.Edit, DisplayMode.View)

 

Hope this helps.

 

 

View solution in original post

Thank you @DanishIslam

 

I knew it was going to be relatively easy but I just couldn't work it out.

 

Thank you so much!

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

Top Solution Authors
Top Kudoed Authors
Users online (50,247)