Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Setting People Picker With Name Of Logged In User

Hi Marc,

Thanks for your work on this. I am new to this. I am having an issue with setting the people picker to the name of ther user that is logged in. If you could let me know what I am doing wrong I would apreciate it. I have included the code below. There are some test alert functions in it that all work. The people picker is the only item not working

Thanks for your help.

 

<script type="text/javascript">
  //alert ("js on.");
  $(document).ready(function() {
   alert ($().SPServices.SPGetCurrentUser());  This Works
   var thisSite = $().SPServices.SPGetCurrentSite();
   alert ('Hello World! Your site is : ' + thisSite );  This Works

   siteContactPeoplePicker = $().findPeoplePicker({
    peoplePickerDisplayName: "Member",
     valueToSet: $().SPServices.SPGetCurrentUser()
  });
  });
</script>

 


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>