You can add a Save as Draft function to a form, which gives the user the ability to save information already entered so that they can complete and submit the form later.
To demonstrate this function, we’ll use a default Simple approval process.
-
In the Form Designer, click the gear icon in the toolbar to open the Form configuration panel.
-
In the Buttons section on the General tab, check Enable save-as-draft. You can also customize the button label in the Save-as-draft label field.
-
In the Workflow Designer, create a loop on the action to which you want to add the Save as Draft function.
-
A process data will already be in place to store the value of the Save as Draft flag. Use this data in the loop condition to determine when the Save as Draft function is used.
-
Define a condition for the transition to the next action (VALIDATES in our example).
-
When the Save as Draft function is enabled, the button is displayed for all of the actions in the workflow. However, if you want to display the button only for certain actions, you can add .NET code to the form. The following code example will add the button to the INITIATES action only:
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (this.CurrentWorkflowActionName != "INITIATES") { saveAsDraftButton.Visible=false; } }
The user will now be able to save their request. To continue or complete the request, they can retrieve it from the My actions to do section in their User Portal, launch the action (INITIATES in our example), and submit the form once it’s complete, or save it again then complete it and submit it later.