Thursday 24 April 2014

Always Open SharePoint 2013 Tasks in Edit Mode

Always Open SharePoint 2013 Tasks in Edit Mode
Open your list from SharePoint Designer.
In the ribbon you can see "List Form".
Click on it.
Enter File Name:Ex: CustomEditForm
Under Select the type of form to ctreate: Check for "Display items form"
Check "Set as the default for the selected type"
Select the content Type to use:
Click OK
Open newly created form in Advanced Mode.
Add below javascript after <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script type="text/javascript">
<!--
var defaultUrl = window.location.toString();
var newUrl = defaultUrl.replace("CustomEditForm","EditForm");
window.location = newUrl;
//-->
</script>
Save