Open SharePoint List Items in Edit Mode by Default

Requirement: Open SharePoint Task list items in Edit form directly instead of “Display form”.


  1. Go to your SharePoint task list, click on Site settings gear, Choose “Edit page” 
  2. Add a script editor and place the below code:
    Open SharePoint List Items in Edit Mode by Default
    Here is the jQuery to launch list items in Edit mode:
<script type="text/javascript" src=""></script>
<script type="text/javascript">
  //Change display form links to edit form links
  $('.ms-vb a[href*="listform.aspx"]').each(function(){
      var url = $(this).attr('href');
      url = url.replace("PageType=4", "PageType=6");
      $(this).attr('href', url);

Now, on clicking any task item link, you’ll be taken into Edit form directly.

open sharepoint list item in edit mode by default

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

4 thoughts on “Open SharePoint List Items in Edit Mode by Default

  • Have you been able to get this to work on SharePoint Online (aka SharePoint 365)? I need it to work there.


  • Doesn’t work on SharePoint Online 🙁

  • congrats dude. Ur price of code made my day 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *