Setting default value for person column to current user in SharePoint 2013 using REST
on
Get link
Facebook
X
Pinterest
Email
Other Apps
Add a content editor WebPart to the New form of custom list and add the below code, replace line 18 SetUserFieldValue function parameter to your people picker column name.
where is the code block???
ReplyDeleteCheck now
DeleteThankz, this code fixed my issue..
DeleteI'm trying to hide the picker field after filling it so the user can't edit it. Any ideas how to extend your code with such function?
ReplyDeletegreat! It really works for me. Thank you
ReplyDeleteWhere's the code??????
ReplyDeleteIf you are not able view the code in the post, then use this url.
DeleteHi, what can I change if I want to use another user, for example domain\jcartin ?
ReplyDeleteWhat could be the code to add two values on the same field? thank you
ReplyDeleteHello Rajesh, I get correct username(in Alert) after using above script however the peoplepicker does not identify the username. Any hint?
ReplyDeleteThank you, it works perfectly for me
ReplyDeleteWe have updated the sharepoint commulative updates to June, 2016 and now this script is not working, regards,
ReplyDelete