cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Edit Forms

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
Highlighted
Super User
Super User

Re: Edit Forms

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)
)

 

Highlighted
Helper I
Helper I

Re: Edit Forms

@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

Highlighted
Community Support
Community Support

Re: Edit Forms

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,742)