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

Copper Contributor

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?