SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Very irritating problem. I have a list with the following view

<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,All_Documents;" DefaultView="TRUE" MobileView="True" MobileDefaultView="True" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/dlicon.png" Url="Forms/AllItems.aspx">
        <Toolbar Type="Standard" />
        <XslLink Default="TRUE">main.xsl</XslLink>
        <RowLimit Paged="TRUE">30</RowLimit>
          <FieldRef Name="DocIcon"></FieldRef>
          <FieldRef Name="LinkFilename"></FieldRef>
          <FieldRef Name="Description"></FieldRef>
          <FieldRef Name="Modified"></FieldRef>
          <FieldRef Name="Editor"></FieldRef>
          <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noitemsinview_doclibrary)" />
          <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noitemsinview_doclibrary_howto2)" />
            <FieldRef Name="FileLeafRef" />

In the schema I set it so only the Description field should be displayed on the edit/new forms. Everything works as expected until I programmatically attach a workflow to the list. When I do this the new/edit forms stop displaying the description field and instead show the filename field. I am lost as to why this is happening....any help?

share|improve this question
Hi MikeC, I want to reproduce this if you haven't already fixed it. Could you post the code to attach the workflow and your schema. On the face nothing else looks wrong. – Hugh Wood Dec 7 '12 at 19:31
When attaching a workflow to a list, Sharepoint will add another column to the view which will be the workflow's name. This is to make it easy to jump to the workflow for the selected list item. I know that's not the answer, but just an explanation as to what is happening – Fox Dec 19 '12 at 8:00

probably you can fix this by resetting fields visibility after adding WF, then hide all except description again; that might be columns indices change issue

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.