Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a task list that has a field AssigneTo which takes a user via the people picker. I can get the list item I need but I have no idea how I would access the oject being returned for the AssignedTo field.

I have tried

var theUser = listItem.get_item('AssignedTo')
alert(theUser.get_loginName());

and just using

 listItem.get_item('AssignedTo').toString()
share|improve this question
add comment

1 Answer

up vote 1 down vote accepted
listItem.get_item('AssignedTo').get_lookupValue();
share|improve this answer
    
Of course that's the method! Thank you! –  Robert Kaucher Feb 23 '12 at 13:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.