Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6981161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:07:14+00:00 2026-05-27T18:07:14+00:00

has anyone attempted trying to fire jquery change event when people picker returns the

  • 0

has anyone attempted trying to fire jquery change event when people picker returns the value to the main form from the pop up browse window? i have tried several tags in the jquery statement but nothing seems to work. (SP 2010)

<wssawc:PeopleEditor AllowEmpty="false" AcceptAnyEmailAddresses="true" ValidateResolvedEntity="true"
ShowButtons="true" ShowDataValidationErrorBorder="true" ShowEntityDisplayTextInTextBox="true"
ShowErrorPlaceHolder="true" ValidatorEnabled="true" MultiSelect="false" ID="primaryOwnerPicker"
runat="server" SelectionSet="User" Width="12em" AllowTypeIn="false" DoPostBackOnResolve="false"
EnableBrowse="true" ForceClaims="true" Title="Primary Owner People Picker" />

i have tried

$("textarea[title='Primary Owner People Picker']").change(function ()
{
    alert("here");
});

any help would be greatly appreciated…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:07:14+00:00Added an answer on May 27, 2026 at 6:07 pm

    You didn’t specify the version of SharePoint but the following explanation applies to SharePoint 2007 and was not confirmed in 2010.

    The people picker’s value can be set by clicking the ‘Check Names’ icon or the ‘Browse’ icon.

    If you click the ‘Check Names’ icon which is an anchor tag, the onclick event invokes ‘WebForm_DoCallback’ which will asynchronously make an HTTP request to the SharePoint server to validate the name entered into the people picker.

    Following is the WebForm_DoCallback signature:

    function WebForm_DoCallback(eventTarget, 
    eventArgument, 
    eventCallback, 
    context, 
    errorCallback, 
    useAsync){
    ...
    }
    

    One of the WebForm_DoCallbacks argument that that you will be most interested in is ‘eventTarget’, the people picker text area. You will also be interested in ‘eventCallback’ as it’s the callback method invoked after the async HTTP request returns. In this case, it’s ‘EntityEditorHandleCheckNameResult(result, ctx)’ defined in core js.

    Following is the definition of the EntityEditorHandleCheckNameResult function

    function EntityEditorHandleCheckNameResult(result, ctx)
    {
       EntityEditorClearWaitCursor(ctx);
       EntityEditorCallback(result, ctx);
    } 
    

    Notice that it delegates the event handling to the EntityEditorCallback method. This is also the case if you click the ‘Browse’ icon which opens a dialog for you to find and select a user. The ‘Browse’ icon obviously leverages a different call stack but as they both rely on EntityEditorCallback, I will focus on this method as the solution works when you click ‘Check Names’ or ‘Browse’.

    To execute your code after EntityEditorCallback is invoked, you can leverage the following code:

    var invokeAfterEntityEditorCallback =  function(func) {
        var old__EntityEditorCallback = EntityEditorCallback;
        if (typeof EntityEditorCallback != 'function') {
            EntityEditorCallback = func;
        } else {
            EntityEditorCallback = function(result, ctx) {
                old__EntityEditorCallback(result, ctx);
            func(result, ctx);
            }
        }
    };
    

    Following is a custom people picker event handler which alerts the result and the ID of the people picker text area:

    function onPeoplePickerFieldSet(result, ctx){
        alert(result);
        alert(ctx); 
    }
    

    Following is logic that will allow the onPeoplePickerFieldSet method to be invoked after the people picker name is checked or selected from the browse dialog. Also, this statement can be invoked in the document.ready event handler if you are using jQuery.

    invokeAfterEntityEditorCallback(onPeoplePickerFieldSet);
    

    The ‘result’ argument of the onPeoplePickerFieldSet method is an XML result indicating successful validation as well as the domain quailified user name. The following XML is an example resulting from click the ‘Check Names’ icon:

    <Entities Append="False" Error="" Separator=";" MaxHeight="3">
       <Entity Key="HOLLOWAY\csteel" DisplayText="Craig Steel" IsResolved="True" Description="HOLLOWAY\csteel">
          <ExtraData>
             <ArrayOfDictionaryEntry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                <DictionaryEntry>
                   <Key xsi:type="xsd:string">DisplayName</Key>
                   <Value xsi:type="xsd:string">Craig Steel</Value>
                </DictionaryEntry>
                <DictionaryEntry>
                   <Key xsi:type="xsd:string">Email</Key>
                   <Value xsi:type="xsd:string">csteel@holloway.net</Value>
                </DictionaryEntry>
                <DictionaryEntry>
                   <Key xsi:type="xsd:string">SPUserID</Key>
                    <Value xsi:type="xsd:string">16</Value>
                </DictionaryEntry>
                <DictionaryEntry>
                   <Key xsi:type="xsd:string">PrincipalType</Key>
                   <Value xsi:type="xsd:string">User</Value>
                </DictionaryEntry>
             </ArrayOfDictionaryEntry>
          </ExtraData>
          <MultipleMatches />
       </Entity>
    </Entities>
    

    The ‘ctx’ argument is the ID of the people picker text area and can be used in a jQuery selector statement.

    That’s it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone attempted this? Is it possible, and if so, what kind of problems
Has anyone attempted to use SQL Server Database as a Subversion file system back
Has anyone successfully done this? Trying to replicate functionality similar to what is found
Does anyone know how to get a page load event to fire if the
What I am trying to achieve is a form that has a button on
Has anyone ever tried to integrate AspDotNetStorefront and Sitecore? I've been trying for the
Has anyone had success compiling QJson statically into an application? I am trying to
Has anyone tried installing SQL Server 2008 Developer on a machine that already has
Has anyone ever set up Cruise Control to build an OS X Cocoa/Objective-C project?
Has anyone looked at Yahoo's ASTRA ? It's fairly nifty, but I had some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.