Create a gist now

Instantly share code, notes, and snippets.

Determines If SharePoint 2010 People Picker control value is resolved
//Determines If People Picker value is resolved (using jQuery)
function IsPeoplePickerValueResolved() {
var eEntityData = $("div[id$='divEntityData']");
if(eEntityData.length > 0 ) {
var isResolved = eEntityData.attr("isresolved");
return (isResolved == "True");
}
return false;
}
@SaMolPP

hi,
thanks for the code.How to get the remaining attributes in the peoplepicker field? I want to get the emailid, sipaddress, department etc. using jQuery / spservices /javascript.
the below is the result i got after applying spservices, innerhtml.
would like to know, how to extract the values from arraydictionary and the mentioned attributes.

isresolved="True" displaytext="P P" key="i:0#.w|mydomain\p_">
@SaMolPP

###################################################
var pp2 = $().SPServices.SPFindPeoplePicker({ peoplePickerDisplayName:
whatDisplayName }).row.find("div[id='divEntityData']")
.attr("displaytext");
//alert( 'the pp title friom 2222 ....' + pp);
//alert( 'the pp email friom 2222 ....' + pp2);
but i am not getting the above mentioned attributes by using the js/jquery/spservices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment