Home > SharePoint 2010 > SharePoint 2010: List Fields not showing up in Edit, Display or New Forms

SharePoint 2010: List Fields not showing up in Edit, Display or New Forms


I have seen a lot of people get stuck on this issue.

Look at the CAML markup in the list definition’s Schema.xml file below (this was auto-generated by the Visual Studio SharePoint ‘List Definition’ template selecting Custom List as the list type):

<List xmlns:ows="Microsoft SharePoint" Title="Custom List" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/ACustomList" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
  <MetaData>
    <ContentTypes>
      <ContentTypeRef ID="0x01">
        <Folder TargetName="Item" />
      </ContentTypeRef>
    </ContentTypes>
    <Fields>
      <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="Title" Required="TRUE" StaticName="Title" FromBaseType="TRUE" />
      <Field ID="{AACF7B24-80FC-4EB6-8C73-381626D056C6}" Name="Value" StaticName="Value" Type="Note" DisplayName="Value" NumLines="6" RichText="TRUE" />
    </Fields>
......
.............

Looking at the list definition you would assume that the edit, display and new forms would display two fields (Title and Value) but in actual fact it only displays the Title field.

The reason for this is that in the markup we have specified that the list uses the Item (0×01) content type but the additional field is not part of that content type hence it does not appear in the forms.

To ensure they appear we either need to:

  • Remove the content type reference from the markup
  • Or we could create a new content type that inherits from the Item content type and include this additional field as part of its definition. We can then reference that content type in our list definition instead of the Item content type.

Other reasons that might cause your fields to not appear in edit, new and/or display forms of your list could be:

  • Field’s ShowInEditForm, ShowInDisplayForm, ShowInNewForm attributes are set to FALSE
  • Field is Hidden
  • Field is set as ReadOnly
    • Please note that this is not an exhaustive list. Hope this helps someone.

      About these ads
  1. djrazr
    May 21, 2012 at 11:35 am

    Thank you, that was what i needed :D (Stupid VS Templates)

  2. September 4, 2012 at 4:06 pm

    Been looking for the answer to this for ages. Nice one.

  3. Vladimir
    October 17, 2012 at 2:35 pm

    Thanks, you help me a lot

  4. February 20, 2013 at 8:33 am

    Thanks! This really made my morning. I was set to adjust a list that an old collegue made but I couldn’t figure out why none of my fields showed up. It was the content type reference…

  5. Faz Khan
    March 26, 2013 at 11:10 am

    Thanks. Really helped me out..

  6. April 20, 2014 at 1:16 am

    magnificent issues altogether, you simply won a new reader.

    What may you recommend about your submit that you made some days in the past?

    Any positive?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: