cancel
Showing results for 
Search instead for 
Did you mean: 
mai-kel
Nintex Newbie

People picker entry into JavaScript variable

Jump to solution

Hi all,

this should be an easy one, but I didn't get it running...  I would like to write a  entry into a variable. What I did:

Within form (setting of the people picker control):

Store Client ID in Javascript: Yes
Client ID Javascript variable name: ppFK

Trying to get it into a variable (both without success):
var FK = new NF.PeoplePickerApi("#" + ppFK);
var FK = document.getElementById(ppFK);
Any help is highly appreciated!  
Cheers
mai-kel
Labels: (1)
Reply
3 Replies
emha
Automation Master
Automation Master

Re: People picker entry into JavaScript variable

Jump to solution

you are almost there

with PP API

var FK = new NF.PeoplePickerApi("#" + ppFK);
console.log('PP content: ' + FK.$elem.val());

without PP API

console.log('PP content: ' + NWF$("#" + ppFK).val());
‍‍

View solution in original post

Reply
mai-kel
Nintex Newbie

Re: People picker entry into JavaScript variable

Jump to solution

Great Marian,

with that I managed to do what I wanted:

Button -> Settings -> Advanced -> Client click -> 

if(!confirm("Would you like to send the request to "+NWF$("#" + ppFK).val()+"?")){ return false; }

Thanks a lot!

Cheers

mai-kel

Reply
Shila_P
Nintex Newbie

Re: People picker entry into JavaScript variable

Jump to solution
Hey,
Can you please help me with this scenario?
People picker id=orgIdCloseOut
text field id=exan
how to display people picker field user's display name into the text field?
0 Kudos
Reply