Hi,
Is there a way in forms 10.1 to remove the Save Draft button when opening a task?
Thanks
Hi,
Is there a way in forms 10.1 to remove the Save Draft button when opening a task?
Thanks
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?
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.
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
Show Save Draft button when viewing task or not is now customizable with Forms 10.2 when you design the process.