Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to set Default Value in 'Person or Group' Field

  Asked By: Dennis    Date: Oct 02    Category: Sharepoint    Views: 16148

I have a "Person or Group" column being used to indicate an Assigned
To value for our application and it is required. I would like the value
of that column to default to the different user name - in other words,
the person submitting the new list item will be the assignee by default
(and has the option to change it).
Is there some way to achieve this?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Duane Walton     Answered On: Oct 02

The first thing that comes to mind, is that you could create a SP
Designer workflow that automatically puts the "created by" information
in that "Assigned To" field  when the item  is created.

This method alone would still show the "assigned" to field when they
create an item, but whatever they select, it would change  to themselves
when they save it for the first time.

A way that you could hide the "Assigned To" field (only if necessary)
would be to enable the use of content types in that list, which would
allow you to show and hide particular fields.

 
Answer #2    Answered By: Cassandra Cooper     Answered On: Oct 02

Create a Custom field  (inherits from Microsoft.SharePoint.SPFieldUser)

Overwrite DefaultValue property (public override string DefaultValue)

and return web.CurrentUser value as a default  value from this property.

Add this new field in fldtypes*.xml file and use this field for ur "Person
or Group" column.

The current logged in user  id will be the default value for this field in
New item  form.

 
Answer #3    Answered By: Raymond Devlin     Answered On: Jul 02

I wrote a simple add-on(SharePoint Default Value Add-On), which inject a "default value" section into "Create Column" dialog.

www.sharepointadd-ons.com/sharepoint_default_value

 
Didn't find what you were looking for? Find more on How to set Default Value in 'Person or Group' Field Or get search suggestion and latest updates.




Tagged: