// Create the panel letel = document.querySelector("#people-picker"); letform = Components.Form({ el:el, rows: [ // Other controls go here { control: { allowGroups:false, label:"Select User:", multi:true, name:"User", type:Components.FormControlTypes.PeoplePicker value: ContextInfo.userId// Default to the current user } asComponents.IFormControlPropsPeoplePicker } ] });
People Picker