Is it possible to include a survey and it's questions in the onet.xml ? I know you can create the survey list, but is it possible to include the questions as well ?
TIA
so far I have been create list instance as follows ListInstance : elements.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListInstance Title="List1" OnQuickLaunch="TRUE" TemplateType="102"
FeatureId="00BFEA71-EB8A-40B1-80C7-506BE7590102" Url="Lists/List1"
Description="My List Instance">
<Data>
<Rows>
<Row>
<Field Name='Q1'>Enter Choice #1</Field>
</Row>
</Rows>
</Data>
</ListInstance>
</Elements>
List elements.xml :
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListTemplate
Name="List1"
Type="102"
BaseType="4"
OnQuickLaunch="TRUE"
SecurityBits="11"
Sequence="410"
DisplayName="List1"
Description="My List Definition"
Image="/_layouts/images/itgen.png"/>
</Elements>
and Schema.xml
<List xmlns:ows="Microsoft SharePoint" Title="List1" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/List1" BaseType="4" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<Fields>
<Field Type="Choice" DisplayName="Q1" Required="TRUE" EnforceUniqueValues="TRUE" Indexed="TRUE" Format="RadioButtons" FillInChoice="FALSE" ID="{354d7076-eb3c-4413-837f-764f9ba86d79}" SourceID="{14afce0c-774c-474e-8b75-db12f85d4605}" StaticName="Q1" Name="Q1" ColName="nvarchar3" RowOrdinal="0">
<CHOICES>
<CHOICE>Enter Choice #1</CHOICE>
<CHOICE>Enter Choice #2</CHOICE>
<CHOICE>Enter Choice #3</CHOICE>
</CHOICES>
</Field>
</Fields>
</MetaData>
</List>
When I activate my feature I get error:
System.ArgumentException : column Q1 not exists or has been deleted
Hope for any help..