Hello all,
I create sharepoint people picker on HTML DIV.
<div id="_UserName"></div>
for Initialize people picker on this div, i have used this code.
function initializePeoplePicker(peoplePickerElementId)
{
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, null, schema);
}
This working very fine, and after that i saved selected person to sharepoint list. and person saving Successfully.
After that, I want to display User in another people picker DIV (Same type div which i use earlier) On button Click. how can i achieve this.
Please Help!