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

New Post: How to trigger a call to another function when a user fills the PeoplePicker

$
0
0
Marc asked to move the question out here so here it is:

How would you go about running “$().SPServices.SPFindPeoplePicker” whenever a user finishes selecting a user?

Is it as simple as:

$(document).ready(function() {
var supervisor = $().SPFindPeoplePicker({
  peoplePickerDisplayName: "Requesting Supervisor"
}); 
supervisor.onblur="Checksupervisor()";
});
function Checksupervisor(){
  var supervisor = $().SPFindPeoplePicker({ peoplePickerDisplayName: "Requesting Supervisor"}); 
  var current = supervisor.currentValue;
  alert(current);     
}


Thanks in advance.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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