Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPFindPeoplePicker

$
0
0

Works for me. A simple test on a Tasks list,

$("input[Title=Title]").blur(function(){
var assigned = $().SPFindPeoplePicker({  peoplePickerDisplayName: "Assigned To"});
console.log(assigned);
});

I put my username in the assigned to box, added some text in my title field and tabbed out.  The console logged an object containing my domain name (in Firefox). From there, just get the username then do whatever else you need.

If I change it to, it outputs my domain account. 

$("input[Title=Title]").blur(function(){
var assigned = $().SPFindPeoplePicker({ peoplePickerDisplayName: "Assigned To"});
console.log(assigned.currentValue);
});

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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