SharePoint lists are awesome, they have so many possible uses. When you create a Custom list, the Title field is the only editable field you get out of the box. But I’ve built a number of lists in which the user wouldn’t necessary know what to put in the title. And although there a few ways to get into the detail of a list item without clicking on the title of the item, doing that is the most intuitive way to get into a list item.

In the regular SharePoint 2010 interface you can’t change the type of the Title field from a single line of text to a calculated column. But this where the most awesome feature of SharePoint 2010 (in my humble opinion) comes in: customizing the form of your list with InfoPath 2010. Lets walk through the steps:

  1. Create your list in the SharePoint 2010 interface. Let’s call it the “Weekly Facility Incident Report”. It has the following columns:
    • Week ending (date),  mandatory field
    • Facility (choice field, choices: A, B and C), mandatory, single choice only
    • Notes (multiple lines of rich text)
    • Days without an incident (number)
  2. Now go to the list and click on the List tab in the ribbon. Here you’ll find the button “Customize Form” with which you edit the form of the list with InfoPath 2010:
  3. Clicking the button opens the form in InfoPath:
  4. Now you can right click the Title field to display it’s properties:
  5. Now click the function button next to the default value:

  6. In this menu you can write text, combine fields and use functions. Let’s make the Title always something like this: “Weekly incident rapport for Facility <name> for week ending <date>. It’s best to only use fields that are mandatory for the list. These are the steps for creating that default setting:
    1. Click on “Insert Function” and under Text, select the “concat” function (to concatenate multiple elements):

    2. Now add the first piece of text by single clicking on the first underlined section and typing the text:
    3. Double click to add a field on the second element and select the Facility field:

    4.  Add the next piece of text by clicking on the 3rd element, add a comma, click the Insert Function button and select the substring function (to display only the date of this date time element):

    5. Double click the first insert field element in this function and add the Week Ending date:

    6. To only show the date (not the time), go from position 1 for 10 characters:
    7. Click OK and the formula is now saved for the default value:
  7. In the form itself, you can now select the row with the Title field, right click and delete it (because it will be set by default anyway):
  8. Now, to publish the form, click the Quick Publish button:

  9. Now the form is published and when you create a new item in the list, the title is set automatically:

(15273)

Views: 15.27K  | Categories: Forms, SharePoint
About The Author
  • KerryDirks says:

    The Title column may simply be hidden as well…no InfoPath Form changes required.
    – turn on the management of content types for the list or library
    – select the content type
    – select the Title column
    – select the radio button to hide the column
    – save the content type changes
    – remove the Title column from the list or library views
    – done

  • EduardSpelier says:

    If you do that, do you still see the Title column in the list view? If not, it would be harder/less intuitive to select the list item from that view

  • KerryDirks says:

    No; you will not see it after the Title column is hidden and it is also removed from the list/library views. I sometimes use these steps when creating a custom list where the Title is a meaningless column.