We are using some Javascript customizations for SharePoint list items. My boss does not like the fact that we have three forms to choose from (edit, new, and display) and wants the user to be able to click the list item Title link and go directly to the Edit form. It is too much trouble (I guess) for the users to select what they want to do.
I found what I thought was a method located in https://www.sharepointdiary.com/2015/09/open-sharepoint-list-items-in-edit-mode-by-default.html but it didn't work. I suspect likely because this is a classic page I am working with and this code is for the online version.
<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);
});
});
</script>
So, the question is this...is it possible to default a selected list item to open the Edit form and how might this be done?
Seems there might be a way to "route" to the Edit form but not sure.
Thanks.