cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
almendoza26
Helper I
Helper I

Edit Forms

Hi I'm new to building powerapps solutions. Is there a way to separate an edit form for end users to edit form for admin users?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @almendoza26 ,

 

You can always use User and If function to show different content for different current user in PowerApps. The formula should be something like:

If(User().Email="xxx@xx.com",FORMULA1,User().Email="xxx@xx.com",FORMULA2,FORMULA3)

 

For more information, please refer to:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
LRVinNC
Super User
Super User

Yes, you can show different users different forms, based on the identity of the user who is connected.  When your application first runs, it will execute anything you have in the App section which appears above your first screen in the Tree View.  You can use either a hardcoded list of users or, preferably a list of admins.  In the example below, I have an app which is only available to authorized editors.  If they aren't in the list of editors, I show them a screen which tells them they are not authorized to use the app.  In your case, you would show them the screen you intend non-admins to see.

 

Set(CurrentUser,User().Email);
If(IsBlank(LookUp(AuthorizedEditors, EditorEmail = CurrentUser).EditorEmail),
        Navigate(NotAuthorizedScreen),
        Navigate(HomePage)
)

 

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@LRVinNC 

 

It's nice to know that this is possible. 

 

We're still planning to build an app that will use this kind requirement.

 

I will reach out again when it has been decided.

 

Thanks

Hi @almendoza26 ,

 

You can always use User and If function to show different content for different current user in PowerApps. The formula should be something like:

If(User().Email="xxx@xx.com",FORMULA1,User().Email="xxx@xx.com",FORMULA2,FORMULA3)

 

For more information, please refer to:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

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 (71,788)