Error while updating people picker

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Sanjaysathyanarayanan
Posts: 1
Joined: Wed Sep 20, 2017

20 Sep 2017

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 1648 times

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

20 Sep 2017

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);
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests