Link to home
Start Free TrialLog in
Avatar of Modifier1000
Modifier1000Flag for United States of America

asked on

SharePoint List column (person) to have a default set.

Hello,

I am using SharePoint 2010 and have a List of Items.  I have a Column for the items that pulls AD info as the person Column type.

Is there a way to set at person Column with a default?

Thanks.
Avatar of tapiwab
tapiwab
Flag of South Africa image

You have to use .net code for that, i dont think its possible out of the box
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The simplest trick to get this done is to create a Infopath Form.

In the Infopath form place a person and group control to select user.

Then create a connection to receive data using connection to receive data from UserProileService...  name it as GetProfileByName .... (you can google out for how to get user information from userprofile service connection)

Then you can place the relevant User Profile  fields on the form and bind controls with connection GetProfileByName ... Once this infopath form is publish to content type or directly to sharepoint list .... it will automaitcally create those columns into sharepoint list...
Avatar of Modifier1000

ASKER

Thank you!

The wonderlaura link is probably common to many SharePoint users, but to me it's new and an extremely valuable resource, so also thanks for the link.
Avatar of Javier Cartin
Javier Cartin

I am interested in the java option, how could it be? something like this, but not the current user, other user. Thank you very much for your help
<Field Type="MyCurrentUser" Name="MyCurrentUser" ID="{...}">
    <Default>[current]</Default>
</Field>