Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 7025

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 2162

Deprecated: Hook imagify_allow_picture_tags_for_webp is deprecated since version 2.2! Use imagify_allow_picture_tags_for_nextgen instead. in /www/collab365_296/public/wp-includes/functions.php on line 5758
How to put a calculated value in your list title column - Collab365
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Warning: Undefined array key "url" in /www/collab365_296/public/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/smart-site/classes/class-tvd-smart-shortcodes.php on line 85

2013-07-04

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:
(Visited 3,443 times, 1 visits today)

About the author 

Eduard Spelier

Summit Bundle

Get 200+ hours of Microsoft 365 Training for 27$!

Master Office 365, Power Platform & SharePoint & Teams With 200+ Hours Of Training Videos and 108 Ebooks in the Collab365 Academy. This offer is insane and is only available for a limited period.