I would like to lock a form from being edited based on the user
Tried entering the below formula but doesn't seem to work - Not sure why
It worked for the "Visible" property but this is not what I am trying to achieve, my goal is to keep it visibile but only allow specific people to edit it
Formula used on the "DefaultMode" property of the form
Screenshot for reference:
Thanks in advance
Solved! Go to Solution.
Hi @Luka84 ,
I've tested your formula and found it is right.
However, please notice one thing: capitalization.
Using the operator of "=" will case sensitive.
So try this formula:
This works for me.
Spot on !!
I added the formula to the OnEdit property of my SharePointIntegration and it worked like a cham 😃
Thank you so much for your help
Formula for reference:
Refresh('CASH APPROVAL'); EditForm('02.USER'); EditForm('01.HEADER') ; EditForm('04.SERVICES'); If((User().Email="firstname.lastname@example.org"),EditForm('03.CASHIER'),ViewForm('03.CASHIER')); Navigate(OVERVIEW, ScreenTransition.None)
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.