Not finding server render people picker AccountName property

rss

Posted by Dan_C - Feb 17 ’15 at 01:11

The only properties I'm seeing for the object dictionary entries are Title, MobilePhone, Department, Email.

 

 

 

Tried both (as described here http://formsdesigner.blogspot.com/2013/04/getting-and-setting-sharepoint-form.html):

console.log('Single test: ' + fd.field('_PCN_PersonLU').value().dictionaryEntries[0].AccountName);

var logins = '';

$.each(fd.field('_PCN_PersonLU').value().dictionaryEntries,

function() {

logins += this.AccountName + '; ';

});

console.log('Multi test: ' + logins);


And I get undefined for both.
When I do
console.log(fd.field('_PCN_PersonLU').value().dictionaryEntries[0]);
I only see Title, MobilePhone, Department, and Email.

 

 

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 18 days
    #1 by Dmitry Kozlov Feb 18 ’15 at 04:38

    Hi,

    Please, try the following code to get the login:

    fd.field('_PCN_PersonLU').control()._el().find('div[id="divEntityData"]').eq(0).attr('key')
    
Displaying 1 to 1 of 1 messages