How to set the people picker field in SharePoint 2013?

How to set the people picker field in SharePoint 2013?

Since you are using SharePoint 2013 I would recommend you to consider the following approach. In SharePoint 2013 for rendering of List Views and Forms was introduced a Client Rendering Mode (CSR). Add Script Editor webpart right below the list view web part.

Why does people picker not resolve users from other domains?

On a SharePoint site, users from other domains don’t get resolved from People Picker. Additionally, You receive the error message “No match found.” With the installation of Service Pack 2 (SP2), suddenly the People Picker would not resolve users from other domains even if one-way trust was enabled.

Do you need to set people picker in SP2?

SP2 enforces the security features with respect to People Picker and the peoplepicker-searchadforests property. You need to set the peoplepicker-searchadforests property for each one-way trusted domain from a SharePoint perspective.

What to do if SharePoint picker is not enabled?

If the “HTTP Activation” feature is not enabled, You may face this issue. Log in to your WFE >> Go to Server Manager >> Add Roles and Features >> Select HTTP Activation and install. Try IIS reset once from all front end servers. Check Alternate Access Mappings settings for the web application.

How to get value from people picker in JavaScript?

But If there is a single value in the people picker column, I am getting it as colListItem.get_item (User) [0].$2e_1; I figured out that I need to use $2e_1, using developer tools. Is this the right way? Is there any other better way?

How to call our own JavaScript function on peoplepicker change event?

To call our own JavaScript function on PeoplePicker change event we need to attach OnUserResolvedClientScript event on PeoplePicker field. Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research!

Where to put placeholdermain in the edit form?

Here is what works for me: I put this snippet at the bottom of PlaceHolderMain in the Edit form using SharePoint Designer: You should be able to take your code out of the jQuery ready function and use the SharePoint ready function instead.