Matt Thornton
I'm a technical project manager, software developer and IT consultant in Guernsey, Channel Islands.

Tech Posts
- SP2010 and Managed Metadata and &
- SharePoint 2010 + DocumentSets + OfficialFile.asmx max file size
- Current user is not a farm administrator – redux
- The OLE DB provider Microsoft.Ace.OLEDB.12.0 for linked server (null) reported an error. Access denied.
- Auto generate SQL audit tables and database triggers
- SharePoint Designer 2010 – list/library There are no items to show in this view – ListData.svc woes
- SharePoint 2010 – Managed Metadata – Required feature is not enabled for this column type
- SharePoint 2010 State Machine workflow delayActivity tip
- SharePoint 2010 State Machine workflow onWorkflowItemChanged firing multiple times
- Get SPUser from Person or Group field
Interesting
- SharePoint 2010 context menu item with custom code (50)
- new SPSite – FileNotFoundException (12)
- SharePoint 2010 + Document Sets + Custom Ribbon Buttons with Custom Code (12)
- Could not load web.config file. The given key was not present in the dictionary. (11)
- SharePoint workflow + list item edit + value cannot be null (9)
-
Twitter
-
New post: SP2010 and Managed Metadata and & http://t.co/CBByt4JSAe 1 month ago
-
New post: SharePoint 2010 + DocumentSets + OfficialFile.asmx max file size http://t.co/VlOW0oSp26 2 months ago
-
New post: Current user is not a farm administrator - redux http://t.co/8HLGrRON 3 months ago
-
New post: The OLE DB provider Microsoft.Ace.OLEDB.12.0 for linked server (null) reported an error. A http://t.co/JzhKX4Wl #ace #oledb #t-sql 6 months ago
-
New post: Auto generate SQL audit tables and database triggers http://t.co/YzAMaEpM #audit_tables #t-sql 6 months ago
-
Tags
3g 2005 2007 2010 add bdc business data catalog comment comments contenttype custom code debugging delay activity deployment document set documentsets edit error event receiver exchange feature folders force iis infopath linkedin list definition microsoft moss powershell SharePoint sharepoint 2010 sp2010 sql sql server ssis ssms ssrs state machine workflow t-sql tip visual studio web services workflow xml content typesRecent News
Search
-


for
Force comment entry when editing a list item
Wednesday, February 10th, 2010Quick tip: custom lists are a great way to store data about a business process or operation that doesn’t necessarily fit in a standard list. They can be used to store virtually any type of data, that makes sense in list form. For instance, you might record the configuration details of all the switches on your network. They’re especially helpful in that by enabling versioning on a list, you can create an audit trail of when things changed. Critically, though, when something changes, you’re likely to want to know why. Therefore, when someone changes an item, you might want to insist that they add a comment to quickly describe the change they have made, and why.
It’s easy to enable this basic functionality.
1. On your List, enable Versioning. Optionally set how many versions should be kept – this will also limit the number of comments you see in the list.
2. Create a new field called “Comments” of type “multi-line text“, select “Require that this column contains information” and finally the kicker “Append changes to existing text” should be set to Yes.
3. Save and go back to your list and create and edit a new item.
You’ll see that when you now edit an item, any previous comments have been automatically removed from the Comments box – and you are forced to enter a comment before you can save it. You can see comments about a specific version by going to the version history.
* Slight caveat, there seems to be a bug when using “edit in datasheet” – the current comment isn’t always removed and therefore you’re not always prompted. Indeed, this is no different to a human bug- that is, if this is really mission critical, then you’ll need a workflow in the background to validate the entry to ensure the comment added is actually meaningful.
Tags: add, comment, comments, custom list, edit, force, linkedin, list item, moss, SharePoint, update, version control
Posted in SharePoint | No Comments »