On edit form i have tried to validate not( userEqual(CurrentUser, Manager)) than hide section on the edit form but it is not working. Any idea?
Hi,
What are the values of CurrentUser and Manager?
@Pingpong You can use something like:
=Userprofilelookup({Common:Currentuser},"PreferredName")!={ItemProperty:Managerfield}
@Pingpong your formula will not work like that. That formula works only for 1 person in the company and that will be the CEO of the # 1 person of the company. Instead of Current User, you may need to use something else e.g. created by or modified by or any other people group field from your form. I've used the formula with Created By field.
!equals(CurrentUser, userProfileLookup(CreatedBy,"Manager"))
@kchaluvadi values are self-explanatory in his question. CurrentUser is the person opening the form and the Manager is the Current User's manager.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.