Current User / Assigned To
Posted: 25 Mar 2015
How can I get the name of the person in the Assigned To field? (people picker)?
I thought could just get it like this fd.field('AssignedTo').value()
But don't get any value, so I tried the script below - but its only showing the domain\userloginnumber - I need the full name. Can I change the .AccountName to something else like .Display Name etc?
(tried a lot of diferent ....)
My working script on a button click:
var hh = fd.field('AssignedTo').value().dictionaryEntries[0].AccountName;
alert(hh);
I thought could just get it like this fd.field('AssignedTo').value()
But don't get any value, so I tried the script below - but its only showing the domain\userloginnumber - I need the full name. Can I change the .AccountName to something else like .Display Name etc?
(tried a lot of diferent ....)
My working script on a button click:
var hh = fd.field('AssignedTo').value().dictionaryEntries[0].AccountName;
alert(hh);