SharePoint 2007: How to Edit a List Item by Clicking on its Title

SharePoint 2007: How to Edit a List Item by Clicking on its Title

I received a request from someone to modify a list view in such a manner that if someone clicks on the title of the item it should take him to the edit page instead of the display page. After some work with Sharepoint designer I was able to manage it in few steps. Here are the steps needed to be followed in this case:

  • Open the site in Sharepoint designer.
  • Navigate down to the list where you want to do the modification.
  • Open the view in sharepoint designer by double clicking on it.
  • Now right click on the area of list viewer webpart and click the option to Convert to XSLT data view.
  • Now click on the section of title as shown


  • This will also select the portion in code part. There you will get a code portion as :

href="{$URL_Display}?ID={@ID}" onclick="GoToPage('{$URL_Display}?ID={@ID}')

  •  Now just change it to:

href="{$URL_Edit}?ID={@ID}" onclick="GoToPage('{$URL_Edit}?ID={@ID}')

  • Save the page and you are ready to go.
  • Now if you click on title you will be taken to Edit form instead of Display form .
Leave a Comment
  • Please add 3 and 1 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Naomi  N edited Revision 4. Comment: Minor edit

  • Patris_70 edited Revision 2. Comment: deleted (en-US) title

  • Horizon_Net edited Revision 1. Comment: added language tags

  • Gokan Ozcifci edited Original. Comment: Made some design changes

Page 1 of 1 (4 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Gokan Ozcifci edited Original. Comment: Made some design changes

  • Horizon_Net edited Revision 1. Comment: added language tags

  • Patris_70 edited Revision 2. Comment: deleted (en-US) title

  • Naomi  N edited Revision 4. Comment: Minor edit

Page 1 of 1 (4 items)