Page 1 of 1

Error while updating people picker

Posted: 20 Sep 2017
by Sanjaysathyanarayanan
I am getting the following error while trying to update a people picker field with current user name using JS SPServices"

"We couldn't find an exact match".

Please help me with a sample piece of code and resolve this issue asap.

Regards,
Sanjay
20170919_112446 (2).jpg
20170919_112446 (2).jpg (194.11 KiB) Viewed 1654 times

Re: Error while updating people picker

Posted: 20 Sep 2017
by Nikita Kurguzov
Try any of these:

Code: Select all

fd.field('User').value(_spPageContextInfo.userLoginName);

Code: Select all

fd.field('User').value(_spPageContextInfo.userEmail);

Code: Select all

fd.field('User').value(_spPageContextInfo.userDisplayName);