Answered Adding data to a Person/Group Column

  • Friday, January 25, 2013 10:27 PM
     
     

    I have a Task list and it has a Requester column of "Person or Group" type. So when a clicks on NEW ITEM, I want the user name to be saved in teh Requester Column. How can I accomplish that.

    Thanks a lot

    Mayank

All Replies

  • Friday, January 25, 2013 11:22 PM
     
     

    You want it to display the username instead of the default display name of the person? Or do you want to pre-specify the requestor to be the person that created the item?

    For the former, just edit the column in the task list and change the display value from 'Display Name with Presence' to Username.

    For the latter, just rename Created to Requestor.


    My CodePlex - My Blog - My Twitter

  • Friday, January 25, 2013 11:50 PM
     
     
    Thanks. But how do I populate the Requester column with the current user who is logged in.
  • Saturday, January 26, 2013 1:16 AM
     
     
    You rename CreatedBy to Requestor, it will automatically be the logged in user who created the item.

    My CodePlex - My Blog - My Twitter

  • Monday, January 28, 2013 8:17 AM
    Moderator
     
     Answered

    Hi Mayank,

    See this similar thread to set current user name in person or group column by default.: Use jquery/javascript on newform.aspx page.

    http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopmentprevious/thread/3b258549-1340-4230-a0c5-2ac5ea2a1fe9

    Hope it could help


    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"

    Whenever you see a reply and if you think is helpful, click "Alternate TextVote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Alternate TextMark As Answer

  • Monday, January 28, 2013 8:30 AM
     
     

    There are different solutions for this. For example as above, just use the "created by" column.

    Or you can use a new "single line of text"-column where default value a calculated value [Me]