title: CSOM Looking for a list of Columns / Fields that show up on SharePoint Form
body: <p>I would like to get a list of Fields of a content type.  I am hoping to get a list of just the fields that show up on the Edit Form or Edit Properties of an uploaded document.</p>
  <p>Below code will get me the fields list, but I cannot distinguish what fields are just shown on the Edit Form / Display Form.</p>
  <p>I think I need to look at FieldLink Collection as that should have a ShowInForm property.   But that &quot;ShowInForm&quot; was not a valid property in that collection.</p>
  <p>I also did some googling but I can see how to setShowInForm, but not how to get that value for the field.</p>
  <p>If you have any suggestions, please let me know.</p>
  <p>ClientContext clientContext = new ClientContext(site);</p>
  <pre><code>        //// Get the content type using ID: 0x01003D7B5A54BF843D4381F54AB9D229F98A - is the ID of the &quot;Custom&quot; content Type
          string contentTypeID = GetContentTypeGUID(contentType, site);
              ContentType ct = clientContext.Web.ContentTypes.GetById(contentTypeID);
  
              //// Gets a value that specifies the collection of fields for the content type
              FieldCollection fieldColl = ct.Fields;
              clientContext.Load(fieldColl);
              clientContext.ExecuteQuery();
  
          //// Display the field name
  
              foreach (Field oField in fieldColl)
              {
                 // Code for each Field
        }
  </code></pre>