Good day,
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
If((User().Email="ABC@Email.com"),FormMode.Edit, FormMode.View)
Screenshot for reference:
Thanks in advance
Luka
Solved! Go to Solution.
Hi @Luka84
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:
If(Lower(User().Email)=Lower("....@....com"),FormMode.Edit,FormMode.View)
This works for me.
Best regards,
Hi @Luka84
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="abd@email.com"),EditForm('03.CASHIER'),ViewForm('03.CASHIER')); Navigate(OVERVIEW, ScreenTransition.None)
User | Count |
---|---|
167 | |
90 | |
73 | |
65 | |
58 |
User | Count |
---|---|
213 | |
153 | |
97 | |
88 | |
66 |