SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.