Skip to main content
Nintex Community Menu Bar

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

  • July 7, 2021
  • 4 replies
  • 214 views

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?

4 replies

Forum|alt.badge.img+12
  • Apprentice
  • July 7, 2021

Hi,

What are the values of CurrentUser and Manager? 


Forum|alt.badge.img+11
  • Scholar
  • July 8, 2021

@Pingpong You can use something like:

 

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


Forum|alt.badge.img+12
  • Rookie
  • July 10, 2021

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

 


Forum|alt.badge.img+12
  • Rookie
  • July 10, 2021

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