I have a custom SHarePoint List that holds a User Lookup.
Now I want to customize the layout in the display or edit form. In both I must render the PeoplePicker Control.
This is my code
(function () {
var ctx = {};
ctx.Templates = {};
overrideContext.Templates.Item= customDisplay;
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(ctx);
})();
function customDisplay (ctx){
var result = ".....<div>MYPEOPLEPICKER_HERE</div>";;
}
How can I render the PeoplePicker control? Is that possible to do this in the Item-Template?