Skip to content
Loading
  
  • JS:  
  •   
  • "text/javascript" src="/_layouts/15/sp.core.js">  
  • "text/javascript" src="/_layouts/15/clienttemplates.js">  
  • "text/javascript" src="/_layouts/15/clientforms.js">  
  • "text/javascript" src="/_layouts/15/clientpeoplepicker.js">  
  • "text/javascript" src="/_layouts/15/autofill.js">  
  • "text/javascript" src="/_layouts/15/1033/sts_strings.js">  
  •   
  •   
  • "text/javascript">  
  •     $(document).ready(function() {  
  •         initializePeoplePicker('txtName');  
  •     });  
  •   
  •     function initializePeoplePicker(peoplePickerElementId, Users) {  
  •         if (typeof(Users) == 'undefined') Users = null;  
  •         // Create a schema to store picker properties, and set the properties.  
  •         var schema = {};  
  •         schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';  
  •         schema['SearchPrincipalSource'] = 15;  
  •         schema['ResolvePrincipalSource'] = 15;  
  •         schema['AllowMultipleValues'] = false;  
  •         schema['MaximumEntitySuggestions'] = 50;  
  •         schema['Width'] = '280px';  
  •         this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, Users, schema);  
  •     }  
  •   
  • Please try this.
    +1
  • Rajkiran Swain
    +1
    http://blog.binaryrepublik.com/2016/07/client-side-people-picker-with-jsom-in.html#.WgLiEmiCyUk
     
    https://sharepoint.stackexchange.com/questions/129947/how-to-set-the-people-picker-field-using-jquery-in-sharepoint-2013-to-current-us 
    +1
  • +1
    http://www.c-sharpcorner.com/blogs/client-side-people-picker-in-sharepoint-2013
    +1
  • 0
    http://www.c-sharpcorner.com/blogs/client-side-people-picker-in-sharepoint-2013
     
    This really works. Thanks Naveen 
    0