Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

List Definition- Fields are not visible in new form?

$
0
0

Hi All,

I have created a empty project and added a List Definition without  selected  List Instance. I have not written anything or change any value in Element.xml. I have only written in Schema.xml file but when deploying the project then Columns created but when try to open to add new items then new created fields are not showing except "Title" field. Below is my code.

<MetaData>

<ContentTypes>

<ContentTypeRef ID="0x01">

<Folder TargetName="Item" />

</ContentTypeRef>

<ContentTypeRef ID="0x0120" />

</ContentTypes>

<Fields>

<Field Id="{D159A093-53F9-41CD-990C-B7B95C334709}" Name="Manufacturer" Hidden="FALSE" DefaultListField="TRUE" Type="Text" DisplayName="Manufacturer" Required="TRUE" AllowDeletion="FALSE" AllowDuplicateValues="TRUE"></Field>

<Field ID="{B092BD5E-EE6A-4A9E-84F5-85D400FE37EE}" Name="Model" Type="Text" DisplayName="Model Name" Required="TRUE" AllowDeletion="FALSE"></Field>

<Field ID="{28398EDD-D1D8-404A-9D26-4728C6790F9D}" Name="CPUMake" DisplayName="CPU Make" Type="Choice" Required="TRUE" AllowDeletion="FALSE">

<CHOICES>

<CHOICE>Intel</CHOICE>

<CHOICE>Dell</CHOICE>

<CHOICE>AMD</CHOICE>

<CHOICE>Other</CHOICE>

</CHOICES>

</Field>

<Field ID="{56DA0C14-C318-4DFC-9F83-6B0F78C7A9F2}" Name="CPUSpeed" DisplayName="CPU Speed (GHz)" Type="Number" Required="TRUE" AllowDeletion="FALSE"></Field>

<Field ID="{9B51AF92-AB85-4E45-91E2-9120D1C03019}" Name="RAMSize" DisplayName="RAM Size (GB)" Type="Number" Required="TRUE" AllowDeletion="TRUE"></Field>

<Field ID="{DFCC06D5-753E-4050-BBB2-8D850CDCFB9A}" Name="Price" DisplayName="Price" Type="Currency" Required="TRUE" AllowDeletion="FALSE"></Field>

</Fields>


<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">


<ViewFields>

<FieldRef Name="Attachments"></FieldRef>

<FieldRef Name="LinkTitle"></FieldRef>

<FieldRef Name="Manufacturer"></FieldRef>

<FieldRef Name="Model"></FieldRef>

<FieldRef Name="CPUMake" ShowField="TRUE"></FieldRef>

<FieldRef Name="CPUSpeed"></FieldRef>

<FieldRef Name="RAMSize"></FieldRef>

<FieldRef Name="Price"></FieldRef>

</ViewFields>

Thanks,

Vishwa


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>