Hi,
I am creating a custom calendar ListDefinition in SharePoint 2010. I have the usual two calendar fields that comes as default which are
EventDate
EndDate
What I noticed is that the default calendar contains an inbuilt validation so that when the user enters an EndDate greater than the EventDate you get an error.
My questions on this are
1. How do I get this same logic into my custom schema.xml file. I tried looking at the manifst.xml file after saving the list (default calendar instance) as a template but still could not find a logic.
2. I tried to introduce the following under the <MetaData> tag in the schema.xml
<Validation Message="Start Time has to be greater than End Time.">=EventDate<=EndDate</Validation>
Still this did not work.
Any ideas anyone?
Thanks
Arjuna.
View Complete Post