You are viewing limited content. For full access, please sign in.

Question

Question

forms 10.1 save draft disable

asked on May 12, 2016 Show version history

Hi,

Is there a way in forms 10.1 to remove the Save Draft button when opening a task?

Thanks

0 0

Replies

replied on May 16, 2016

You can modify partial.template.js under Laserfiche Forms\Forms\js\templates by adding "hidden" class to the Save Draft Button:

find following piece of clode:

<button class="btn btn-primary" ng-if="ihd.item.$rights.saveDraft" ng-click="ihd.saveDraft()" title="{{::ihd.STRINGS.savedraft}}">\n     {{::ihd.STRINGS.savedraft}}\n    </button>

change to 

<button class="btn btn-primary hidden" ng-if="ihd.item.$rights.saveDraft" ng-click="ihd.saveDraft()" title="{{::ihd.STRINGS.savedraft}}">\n     {{::ihd.STRINGS.savedraft}}\n    </button>\n  

Can you share why you want to hide this button?

0 0
replied on June 1, 2016

I am also looking to disable this functionality. I have several pieces of javascript that run when a user clicks the submit or approve buttons. I also have created my own "Save" button with similar functionality behind it, however these functions do not get called when the "Save Draft" button is clicked in the upper right hand corner of the form. I am using Laserfiche Forms Version 10.0.0.1154 but am not finding the above mentioned javascript files. Any help would be much appreciated.

0 0
replied on June 1, 2016

The code for 10.0 is different as 10.1. For 10.0, you can modify the _ItemHeader.html under Laserfiche Forms\Forms\Partials\Inbox find following piece of code:

<a class="lfm-button" ng-if="ihd.item.$rights.saveDraft" ng-click="ihd.saveDraft()" title="{{::ihd.STRINGS.savedraft}}">

add "hidden" to the class

0 0
replied on January 12, 2017

Show Save Draft button when viewing task or not is now customizable with Forms 10.2 when you design the process.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.