Geeks With Blogs
Clara's Notes on Technology Notes to me and the world

How to specify a calculated value for a SharePoint custom field in its XML schema?

Like this:
 <Field
    Type="DateTime"
    Format="DateOnly"
    DisplayName="ExpiryDate"
    Required="FALSE"
    EnforceUniqueValues="FALSE"
    Group="My Group"
    ID="{99668BDC-5DED-46d0-A4EC-360237966F52}"
    StaticName="ExpiryDate"
    Name="ExpiryDate">
    <DefaultFormula>[today]+60</DefaultFormula>
  </Field>
 

Posted on Friday, January 21, 2011 5:38 AM SharePoint | Back to top


Comments on this post: Default calculated value for datetime field in xml

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Clara Oscura | Powered by: GeeksWithBlogs.net