Skip to content

Instantly share code, notes, and snippets.

@dimkk
Created April 1, 2015 09:44
Show Gist options
  • Save dimkk/73231ecd88bff8f252f7 to your computer and use it in GitHub Desktop.
Save dimkk/73231ecd88bff8f252f7 to your computer and use it in GitHub Desktop.
form.aspx
<script src="[YOUR PATH]/jquery.js"></script>
<script src="[YOUR PATH]/jquery.SPServices-0.7.2.js"></script>
<script src="[YOUR PATH]/spsext.js"></script>
<script>
(function() {
if (!_spBodyOnLoadCalled) {
_spBodyOnLoadFunctions.push(pageLoad);
} else {
pageLoad();
}
function pageLoad() {
var pp = $.SPServices.findPP({ //Returns spservices object like from SPFindPeoplePicker
id: '', //Unique FormControl Identifier
valueToSet: '', //account of user, like davolkovsky
checkNames: true, // in order to click check
debug: true // this will cause to highlight the pp row
});
}
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment