# Form designer: Hide the save as draft button for some actions

**URL:** <https://discuss.workflowgen.com/t/form-designer-hide-the-save-as-draft-button-for-some-actions/276>\
**Category:** Form Designer\
**Created:** [September 28, 2014, 1:46am UTC](https://discuss.workflowgen.com/t/form-designer-hide-the-save-as-draft-button-for-some-actions/276 "2014-09-28T01:46:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [September 28, 2014, 1:46am UTC](https://discuss.workflowgen.com/t/form-designer-hide-the-save-as-draft-button-for-some-actions/276/1 "2014-09-28T01:46:21Z")

</div>

When the **Save as draft** feature is enabled, the button is displayed for all the workflow actions.

If you need to hide this button for some actions, you have to add the following .Net code (where **INITIATES** is the name of the action):

```auto
protected void Page_Load(object sender, EventArgs e)
{ 
	base.Page_Load(sender, e); 
	if (this.CurrentWorkflowActionName == "INITIATES") 
	{ 
		saveAsDraftButton.Visible = false; 
	} 
}

```

---

<div class="post-metadata">

**Author:** ![Rogelio](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Rogelio](https://discuss.workflowgen.com/u/Rogelio)\
**Post date:** [February 2, 2017, 4:25pm UTC](https://discuss.workflowgen.com/t/form-designer-hide-the-save-as-draft-button-for-some-actions/276/2 "2017-02-02T16:25:32Z")

</div>

Hi,  
In the example the INITIATES is missing an ending double quote.  
Thanks
