cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Setting People picker value to current user's manager

Jump to solution

Hello,

 

I'm running into an issue when trying to set a people picker type of field in Nintex forms to the manager of a user.

The manager value is well retrieved as domain\login but the people picker just stays blank.

 

I'm using javascript to set it, following an example from the community.

 

Here is how I try to set the people picker value : NWF$('#'+ManagerFieldID).val(manager);

Is there any way to do so without depending on a "third party" Library, as SPAPI ?

 

Another question about the syntax to use on rules : I saw that sometimes inline function are not working properly, that's why I'm using like "a && !b || c" notation. Is it supposed to work correctly this way ? Or should I really use the inline functions instead ?

 

Thank you

Labels: (2)
Tags (1)
0 Kudos
Reply
4 Replies
mlauer
Nintex Newbie

Re: Setting People picker value to current user's manager

Jump to solution

There is an API to manipulate People Picker control:

People Picker Extensions - Nintex Forms

0 Kudos
Reply
Not applicable

Re: Setting People picker value to current user's manager

Jump to solution

we can use run time functions to get user's manager and display on form, then we can update on workflow. if we don't want script.....

syntax: userProfileLookup("Domain\Login", "manager")

0 Kudos
Reply
Highlighted
mlauer
Nintex Newbie

Re: Setting People picker value to current user's manager

Jump to solution

Hi Thulasi,

problem was not to get Manager but to set People Picker control.

Kind regards

Manfred

0 Kudos
Reply
Not applicable

Re: Setting People picker value to current user's manager

Jump to solution

Thanks, it works great !

0 Kudos
Reply