Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Calculated value in default value of DateTime site column?

  Asked By: Coty Mcmillan         Date: Jan 22, 2007      Category: Sharepoint      Views: 1514
 

I'm creating a site column and I'm wondering if it's possible to change the
default value to use a calculated value? I know it's possible to do this via
the UI, but I need to be able to do this from a feature. I'm open to using the
object model via a feature receiver if needed.

Here's what I'm starting with:

<Field ID="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
Name="ExpireDate"
Group="Custom Columns"
Type="DateTime"
DisplayName="Expires"
Format="DateTime"
SourceID="http://schemas.microsoft.com/sharepoint/v3/fields"
StaticName="ExpireDate"
>
<Default>[today]</Default>
</Field>

Tagged:                

 

1 Answer Found

 
Answer #1       Answered By: Robbe Simon          Answered On: Jan 19, 2011       

hello, i have the same problem. have you found any solution ?
thinks

 
Didn't find what you were looking for? Find more on Calculated value in default value of DateTime site column? Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].