locked
How to add description to other fields? RRS feed

  • Question

  • I am wanting to add the description field to a custom list.  Similar to how the Url field has a description to enter that shows up under the custom list entry as greyed out text to not take away from the title.
    Monday, November 19, 2012 9:03 PM

Answers

  • The following are the high-level steps that are required to create a custom field type.

    To create a custom field control

      • Create a public custom field type class, which inherits from one of the built-in field type classes, such as SPFieldBoolen, SPFieldChoice, or SPFieldText.

      • Add two public constructors using specific parameter list signatures and forward parameters to base class constructors with matching signatures.

      • Create an XML file known as the field type deployment file. You must deploy it in a well-known directory that activates the custom field type on a farm-wide basis.

    Check this link: http://msdn.microsoft.com/en-us/library/gg132913(v=office.14).aspx

    Hope this helped.

    Monday, November 19, 2012 9:29 PM

All replies

  • The following are the high-level steps that are required to create a custom field type.

    To create a custom field control

      • Create a public custom field type class, which inherits from one of the built-in field type classes, such as SPFieldBoolen, SPFieldChoice, or SPFieldText.

      • Add two public constructors using specific parameter list signatures and forward parameters to base class constructors with matching signatures.

      • Create an XML file known as the field type deployment file. You must deploy it in a well-known directory that activates the custom field type on a farm-wide basis.

    Check this link: http://msdn.microsoft.com/en-us/library/gg132913(v=office.14).aspx

    Hope this helped.

    Monday, November 19, 2012 9:29 PM
  • May be I'm not seeing the big picture, but SharePoint already gives you a description field. Go to List Settings and click on one of the columns. You'll find a Description field where you can enter details about that field.

    Are you looking for something else?


    Pman
    http://www.pmansLab.com/

    Tuesday, November 20, 2012 3:36 AM
  • Something else.  When entering a new item in sharepoint and having the url field you are actually presented with 2 items to enter.  First is the Url and next is the description field.  I wanted this because it actually writes the description field under the Url and greys it out to not take attention away from it.
    Tuesday, November 20, 2012 1:43 PM
  • If you think my suggestion worked out for our, feel free to Mark as Answer...
    Tuesday, November 20, 2012 5:47 PM
  • I see. In that case, you'll need to create custom control and then deploy it to your SharePoint farm. I believe you'll need Visual Studio for that. You'll find resources on this online. ParthaStarSP also gave you some guidelines.


    Pman
    http://www.pmansLab.com/

    Wednesday, November 21, 2012 4:14 AM