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

Posted on 2013-09-26
Medium Priority
Last Modified: 2016-09-20

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?

Question by:Modifier1000

Expert Comment

ID: 39527247
You have to use .net code for that, i dont think its possible out of the box
LVL 44

Accepted Solution

Rainer Jeschor earned 2000 total points
ID: 39527291
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:
(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.


Expert Comment

ID: 39527437
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...

Author Closing Comment

ID: 39527524
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.

Expert Comment

by:Javier Cartin
ID: 41807548
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="{...}">

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
Watch the video of Kernel Migrator for SharePoint, which demonstrate the process easily of migration from SharePoint to SharePoint, OneDrive for Business & Google Drive servers, Public Folder to SharePoint, File Server to SharePoint. The tool has va…
Suggested Courses

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question