cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
almendoza26
Level: Powered On

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
Community Support Team
Community Support Team

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

 

almendoza26
Level: Powered On

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

Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 302 members 5,908 guests
Please welcome our newest community members: