Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to display sharepoint user in people picker DIV.

$
0
0

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!



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>