Not finding server render people picker AccountName property

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Dan_C
Posts: 63
Joined: Tue Dec 02, 2014

17 Feb 2015

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

18 Feb 2015

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')

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests