1) Create input workflow variable/parameter (show on start form)with name "ID" and save the workflow.
2) Create/Edit workflow initiation form
3) Insert field "ID" to the form (outside the main editable area)
4) Important -> Set the SceenTip (i.e. value = "currentItemID")
5) Why is it important? Because ID for field/input changes when you change the form (i.e. when you add a new field), but attribute "title" not.
6) Open WebFrontEnd server -> path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS" and edit "IniWrkflIP.aspx". (!!Make backup of this file before!!)
7) Replace the file contents wit code below:
<%-- _lcid="1033" _version="15.0.4420" _dal="1" --%>
<%-- _LocalBinding --%>
<%@ Assembly Name="Microsoft.Office.Workflow.Pages, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="Microsoft.Office.DocumentManagement.Pages, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" DynamicMasterPageFile="~masterurl/default.master" Inherits="Microsoft.Office.Workflow.IniWrkflIPPage" EnableSessionState="true" AutoEventWireup="false" %>
<%@ Import Namespace="Microsoft.Office.DocumentManagement.Pages" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.Publishing" %>
<%@ Import Namespace="Microsoft.SharePoint.WebControls" %>
<%@ Import Namespace="Microsoft.SharePoint.WebPartPages" %>
<%@ Register Tagprefix="InfoPath" Namespace="Microsoft.Office.InfoPath.Server.Controls" Assembly="Microsoft.Office.InfoPath.Server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Publishing" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Register TagPrefix="wssuc" TagName="LinksTable" src="/_controltemplates/15/LinksTable.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/15/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/15/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="LinkSection" src="/_controltemplates/15/LinkSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/15/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ActionBar" src="/_controltemplates/15/ActionBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="/_controltemplates/15/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/15/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="Welcome" src="/_controltemplates/15/Welcome.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="FormCustomRedirectControl" AllowMultipleControls="true"/>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
<SharePoint:CssRegistration Name="forms.css" runat="server"/>
</ContentTemplate>
</SharePoint:UIVersionedContent>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:EncodedLiteral runat="server" text="<%$Resources:dlc, IniWrkfl_PageTitleGeneric%>" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
<%
string strPTS = (string)GetGlobalResourceObject("dlc", "IniWrkfl_PageTitleSpecific");
SPHttpUtility.WriteNoEncode(String.Format(strPTS, SPHttpUtility.HtmlEncode(m_workflowName)),this.Page);
if (List != null)
{
%>: <% if (List.BaseType == SPBaseType.DocumentLibrary)
{ %> <a tabindex=1 id=onetidListHlink HREF=<% SPHttpUtility.WriteAddQuote(SPHttpUtility.UrlPathEncode(m_listItemUrl,true),this.Page);%>><%SPHttpUtility.WriteHtmlEncode(m_listItemName,this.Page);%></A> <% }
else
{ SPHttpUtility.WriteHtmlEncode(m_listItemName,this.Page); }
}
%>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
<img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" />
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
<%
string strPageDescription = (string)GetGlobalResourceObject("dlc", "IniWrkfl_PageDescription");
SPHttpUtility.WriteHtmlEncode(strPageDescription,this.Page);
%>
</asp:Content>
<asp:Content contentplaceholderid="PlaceHolderSearchArea" runat="server"/>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<InfoPath:XmlFormView id="XmlFormControl" runat="server"
style="width:100%; margin-left:20px;"
/>
<SharePoint:FormDigest runat=server/>
<br><br>
<asp:PlaceHolder runat="server" id="ListFormWebPartPlaceHolder"/>
<%--
<wssuc:ButtonSection runat="server">
<Template_Buttons>
<asp:button class="ms-ButtonHeightWidth" runat="server" text="<%$Resources:wss,multipages_savebutton_text%>" onclick="OKBtn_Click" id="btnOK" />
</Template_Buttons>
</wssuc:ButtonSection>
--%>
<SharePoint:PageRenderMode runat="server" RenderModeType="Standard"/>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
<div style="padding-left:5px">
</ContentTemplate>
</SharePoint:UIVersionedContent>
<table class="ms-core-tableNoSpace" id="onetIDListForm" style="width:90%; margin-left:5px">
<tr>
<td>
<WebPartPages:WebPartZone id="Main" runat="server" FrameType="None" title="loc:Main">
<ZoneTemplate>
<WebPartPages:ScriptEditorWebPart runat="server" Content="" ChromeType="None" Description="$Resources:core,ScriptEditorWebPartDescription;" ImportErrorMessage="$Resources:core,ImportErrorMessage;" Title="$Resources:core,ScriptEditorWebPartTitle;" __MarkupType="vsattributemarkup" __WebPartId="{311e341a-131c-4987-92e4-50e0bb2d0f7d}" WebPart="true" __designer:IsClosed="false" partorder="2" id="g_311e341a_131c_4987_92e4_50e0bb2d0f7d"></WebPartPages:ScriptEditorWebPart>
</ZoneTemplate>
</WebPartPages:WebPartZone>
</td>
</tr>
</table>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
</div>
</ContentTemplate>
</SharePoint:UIVersionedContent>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderId="PlaceHolderTitleLeftBorder" runat="server">
<table cellpadding="0" height="100%" width="100%" cellspacing="0">
<tr>
<td class="ms-areaseparatorleft">
<img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" />
</td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
<script type="text/javascript" id="onetidPageTitleAreaFrameScript">
if (document.getElementById("onetidPageTitleAreaFrame") != null) {
document.getElementById("onetidPageTitleAreaFrame").className = "ms-areaseparator";
}
</script>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">
<SharePoint:StyleBlock runat="server">
.ms-bodyareaframe {
padding: 8px;
border: none;
}
</SharePoint:StyleBlock>
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderId="PlaceHolderBodyLeftBorder" runat="server">
<div class='ms-areaseparatorleft'>
<img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" />
</div>
</asp:Content>
<asp:Content ID="Content10" ContentPlaceHolderId="PlaceHolderTitleRightMargin" runat="server">
<div class='ms-areaseparatorright'>
<img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" />
</div>
</asp:Content>
<asp:Content ID="Content11" ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server">
<div class='ms-areaseparatorright'>
<img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" />
</div>
</asp:Content>
<asp:Content ID="Content12" ContentPlaceHolderId="PlaceHolderTitleAreaSeparator" runat="server"/>
8) This will allow us that the application page is editable and includes a WebPart zone: