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

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 98 members 3,726 guests
Please welcome our newest community members: