Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

<Default> Element for a DateTime type Field in the Scheme.xml

  Asked By: Armando    Date: Aug 19    Category: Sharepoint    Views: 6071

I created a custom site definition for a WSS site. I added a custom
DateTime field to the Announcements lists in the Schema.xml. I'm
trying to pass a default value to it, but I'm not having any
success -- I want the default date in the calculated value field to
be "[today]+3". I'm able to set the defaut value to today by using
the default element "<default>[today]</default>" but I cant default
it to the calculated value.

The xml code i have used to set the default to today is as follows: -
- I need it to be today + 3, but I cant get the syntax correct.
<Field Type="DateTime" Name="Expires" DisplayName="Expires"
Format="DateOnly" FromBaseType="TRUE">

Any Idead????



No Answers Found. Be the First, To Post Answer.