Page 1 of 1

Get ID from people picker

Posted: 01 May 2018
by charles267
Is there a way to get the ID of the user chosen in the people picker? Thanks!

Re: Get ID from people picker

Posted: 02 May 2018
by Nikita Kurguzov
Dear Charles,
Please, try the following code:

Code: Select all

fd.field('User').control('ready', function() {
  alert(fd.field('User').value()[0].EntityData.SPUserID);
});
It should work in almost all cases, but there is a chance that some users won't contain this information, so it does need testing.