Pingpong
Nintex Newbie

How to evaluate if currentuser equal manager person field on edit form to hide section

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?

0 Kudos
Reply
4 Replies
kchaluvadi
Workflow Veteran

Re: How to evaluate if currentuser equal manager person field on edit form to hide section

Hi,

What are the values of CurrentUser and Manager? 

0 Kudos
Reply
claudiaurbanski
Design Canvas Artiste

Re: How to evaluate if currentuser equal manager person field on edit form to hide section

@Pingpong You can use something like:

 

=Userprofilelookup({Common:Currentuser},"PreferredName")!={ItemProperty:Managerfield}

0 Kudos
Reply
kunalpatel
Automation Master
Automation Master

Re: How to evaluate if currentuser equal manager person field on edit form to hide section

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

 

0 Kudos
Reply
kunalpatel
Automation Master
Automation Master

Re: How to evaluate if currentuser equal manager person field on edit form to hide section

@kchaluvadi values are self-explanatory in his question. CurrentUser is the person opening the form and the Manager is the Current User's manager. 

0 Kudos
Reply