How to open a grouped list item in edit mode instead of display

%3CLINGO-SUB%20id%3D%22lingo-sub-139126%22%20slang%3D%22en-US%22%3EHow%20to%20open%20a%20grouped%20list%20item%20in%20edit%20mode%20instead%20of%20display%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-139126%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20grouped%20list%20that%20I%20want%20to%20be%20able%20to%20open%20in%20'Edit'%20mode%20by%20default%2C%20rather%20than%20display%20mode.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20done%20this%20with%20other%20lists%20that%20are%20not%20grouped%2C%20but%20I%20need%20it%20to%20work%20with%20the%20grouped%20ones%20as%20well.%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20is%20what%20I%20did%20for%20the%20normal%20lists%3A%3C%2FP%3E%0A%3CPRE%3E%26lt%3Bscript%20type%3D%22text%2Fjavascript%22%20src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.4.4%2Fjquery.min.js%22%26gt%3B%26lt%3B%2Fscript%26gt%3B%0A%26lt%3Bscript%20type%3D%22text%2Fjavascript%22%26gt%3B%0A%24(document).ready(function()%0A%7B%0A%20%20%2F%2FChange%20display%20form%20links%20to%20edit%20form%20links%0A%20%20%24('.ms-vb%20a%5Bhref*%3D%22listform.aspx%22%5D').each(function()%7B%0A%20%20%20%20%20%20var%20url%20%3D%20%24(this).attr('href')%3B%0A%20%20%20%20%20%20url%20%3D%20url.replace(%22PageType%3D4%22%2C%20%22PageType%3D6%22)%3B%0A%20%20%20%20%20%20%24(this).attr('href'%2C%20url)%3B%0A%20%20%7D)%3B%0A%3C%2FPRE%3E%0A%3CP%3E%3CBR%20%2F%3EAny%20ideas%20on%20how%20to%20have%20this%20same%20functionality%20for%20a%20grouped%20list%20would%20be%20greatly%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-139212%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20open%20a%20grouped%20list%20item%20in%20edit%20mode%20instead%20of%20display%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-139212%22%20slang%3D%22en-US%22%3EIn%20your%20grouped%20list%2C%20when%20you%20expand%20a%20group%20and%20then%20check%20what%20the%20URL%20in%20the%20A%20link%20is%2C%20does%20it%20show%20your%20change%3F%3CBR%20%2F%3EWhat%20exactly%20is%20not%20working%3F%3CBR%20%2F%3EAre%20we%20talking%20about%20SharePoint%20Online%20or%20SharePoint%20On-Premise%3F%3C%2FLINGO-BODY%3E
Occasional Visitor

I have a grouped list that I want to be able to open in 'Edit' mode by default, rather than display mode.

I have done this with other lists that are not grouped, but I need it to work with the grouped ones as well.

Here is what I did for the normal lists:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
  //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);
  });


Any ideas on how to have this same functionality for a grouped list would be greatly appreciated!

1 Reply
In your grouped list, when you expand a group and then check what the URL in the A link is, does it show your change?
What exactly is not working?
Are we talking about SharePoint Online or SharePoint On-Premise?