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.
Modifier1000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tapiwabCommented:
You have to use .net code for that, i dont think its possible out of the box
0
Rainer JeschorCommented:
Hi,
this is not possible OOTB (out-of-the-box).
@tapiwab: Sorry but you are absolutely wrong - there are ".Net code-less" solutions!

Depending on your SharePoint edition (server vs. foundation) you have two choices (when you want to set the value BEFORE the user submits the entry):
- Using Infopath form for data entry and set default value there
A very good description with pics from MVP Laura Rogers:
http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=178
(there is a link inside if you have SharePoint foundation)

- Using client side script (Javascript) to set the default value
If you are interested in this solution, just add a comment and I will provide a sample tonight.

Other than the two above mentioned options, you can of course use a workflow or a coded event receiver to set the value AFTER the user has submitted the form.

HTH
Rainer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rajesh9833Commented:
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...
0
Modifier1000Author Commented:
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.
0
Javier CartinCommented:
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>
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.