So far I manage with the below sample to deploy a list instance of survey from VS2012, how ever I cannot seem to add the question in the Im getting always when deploying "Error occurred in deployment step 'Activate Feature' Column 'Q1' does not exists. It may have been deleted by another user... here are my XML files
so basically my question how exactly can I add question field to the list Instance and schema.xml
TIA
so far I have been create list instance as follow:
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>