I have a list in SP2010 and need the user's name to auto-populate in the "Assigned To" People or Group field whenever s/he submits an new item. Thanks!

  • Is it an editable field? Are you displaying that field in the New Form? – Amal Hashim Nov 26 '14 at 17:59

This is easily accomplished by using an InfoPath form. You can create a lookup to the user profile sync (syncs with AD): Link

Alternatively, you might be able to create a workflow that copies the user from "Created By" field into "assigned to."


If you want to do this with default List forms. You can add JavaScript to your form to achieve this as explained in this article.

  • Thanks! I went to the site and copied the code but it is auto-populating "[object Object]" in the field and not the user name. Any idea what I am doing wrong? THanks! – Jackie Nov 26 '14 at 20:22
  • I haven't used this myself. But, you can try adding alert(vals); in fillDefaultValues() function, after the following line in your code. var vals = new Object(getUserDisplayName()); This is to check if your code is capturing the loggedin user's name properly. – Amit Tyagi Nov 26 '14 at 20:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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