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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,521)