Not finding server render people picker AccountName property
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.
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.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Please, try the following code to get the login:
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')
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests