SP 2013 PeoplePicker SPServices Get current user - help needed

Oct 6, 2015 at 4:02 PM
The following code works perfect in 2010, but in SP 2013 it stopped, it gets current user but is not resolving.

Does someone have code that resolves the current user in people picker? If so, could you please paste it here. I really appreciate your help.

<script language="javascript" type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
<script language="javascript" type="text/javascript" src="/js/jquery.SPServices-2013.01.min.js"></script>
<script language="javascript" type="text/javascript">
/* $(document).ready(function(){
var userName = $().SPServices.SPGetCurrentUser({
fieldName: "Title"
});
$("div[title='People Picker']").text(userName);
$("textarea[id='ctXXXXuserField_upLevelDiv']").val(userName);
$("div[id='ctXXXUserField_upLevelDiv']").text(userName);});
Coordinator
Oct 15, 2015 at 8:23 PM
I've had several reports about this and haven't had a chance to develop a fix. If you do, please post it here and I'll add it into the library. With attribution, of course!

M.