I'm using Jquery version 1.11, SPServices ver. 2014.01, IE ver. 11.0, FF ver. 28.0 and Chrome ver. 33.0. Everything is working as expected in IE but not in FF or Chrome. I'm attempting to assign the logged in user to the PeoplePicker field using SPFindPeoplePicker but the field never populates or resolves. I'm not receiving any errors and considering how FF and Chrome renders control differently than IE, I wonder should I change my code for the PeoplePicker more along the lines of: http://sympmarc.com/2010/03/16/set-a-people-pickers-value-on-a-form-revisited-with-jquery/. I know I'm not the first to encounter these issues.
Any help would be appreciated and Thank You in advance - Marcus
Any help would be appreciated and Thank You in advance - Marcus
//Get Currently logged-in Users Title and Username value
var sLoggedUser = $().SPServices.SPGetCurrentUser({fieldName:'Title'});
var sUName = $().SPServices.SPGetCurrentUser({fieldName:'UserName'});
//Populate the Selected Attendee PeoplePicker field hidden field
var $selAttendee = $().SPServices.SPFindPeoplePicker({
peoplePickerDisplayName: "Selected Attendee",
valueToSet: sLoggedUser,
debug: false
});
//Populate the Attendee Department hidden field
var $attDept = $().SPServices.SPFindPeoplePicker({
peoplePickerDisplayName: "Attendee Department",
valueToSet: sLoggedUser,
debug: false
});