Page 1 of 1

Not finding server render people picker AccountName property

Posted: 17 Feb 2015
by Dan_C
The only properties I'm seeing for the object dictionary entries are Title, MobilePhone, Department, Email.


Tried both (as described here http://spform.com/forms-designer- ... eld-values):

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.

Re: Not finding server render people picker AccountName property

Posted: 18 Feb 2015
by Dmitry Kozlov
Hi,

Please, try the following code to get the login:

Code: Select all

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