<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add Reset button in Alfresco workflow form in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-reset-button-in-alfresco-workflow-form/m-p/103278#M29428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way will be to extend&amp;nbsp;&lt;STRONG&gt;form.get.html.ftl&lt;/STRONG&gt;,this file is responsible for rendering all form in alfresco share.Form related to content as well are rendered using this file.So any change you make in this file will reflect in all forms.You can add condition like if it is workflow form then and then only you need to make reset button visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This template is importing one more template named as form.lib.ftl which is responsible for rendering the form buttons.Below is the same macro where you need to add button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;#macro renderFormButtons formId&amp;gt; &lt;BR /&gt; &amp;lt;div id="${formId}-buttons" class="form-buttons"&amp;gt;&lt;BR /&gt; &amp;lt;#if form.showSubmitButton?? &amp;amp;&amp;amp; form.showSubmitButton&amp;gt;&lt;BR /&gt; &amp;lt;input id="${formId}-submit" type="submit" value="${msg("form.button.submit.label")}" /&amp;gt;&amp;nbsp;&lt;BR /&gt; &amp;lt;/#if&amp;gt;&lt;BR /&gt; &amp;lt;#if form.showResetButton?? &amp;amp;&amp;amp; form.showResetButton&amp;gt;&lt;BR /&gt; &amp;lt;input id="${formId}-reset" type="reset" value="${msg("form.button.reset.label")}" /&amp;gt;&amp;nbsp;&lt;BR /&gt; &amp;lt;/#if&amp;gt;&lt;BR /&gt; &amp;lt;#if form.showCancelButton?? &amp;amp;&amp;amp; form.showCancelButton&amp;gt;&lt;BR /&gt; &amp;lt;input id="${formId}-cancel" type="button" value="${msg("form.button.cancel.label")}" /&amp;gt;&lt;BR /&gt; &amp;lt;/#if&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/#macro&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 May 2019 06:38:17 GMT</pubDate>
    <dc:creator>krutik_jayswal</dc:creator>
    <dc:date>2019-05-23T06:38:17Z</dc:date>
    <item>
      <title>How to add Reset button in Alfresco workflow form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-reset-button-in-alfresco-workflow-form/m-p/103277#M29427</link>
      <description>Hi everyone,How can I add reset button in workflow form which will clear all the fields on the form except one?Thanks,Yash</description>
      <pubDate>Wed, 22 May 2019 04:30:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-reset-button-in-alfresco-workflow-form/m-p/103277#M29427</guid>
      <dc:creator>yash_patel_c2</dc:creator>
      <dc:date>2019-05-22T04:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Reset button in Alfresco workflow form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-reset-button-in-alfresco-workflow-form/m-p/103278#M29428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way will be to extend&amp;nbsp;&lt;STRONG&gt;form.get.html.ftl&lt;/STRONG&gt;,this file is responsible for rendering all form in alfresco share.Form related to content as well are rendered using this file.So any change you make in this file will reflect in all forms.You can add condition like if it is workflow form then and then only you need to make reset button visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This template is importing one more template named as form.lib.ftl which is responsible for rendering the form buttons.Below is the same macro where you need to add button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;#macro renderFormButtons formId&amp;gt; &lt;BR /&gt; &amp;lt;div id="${formId}-buttons" class="form-buttons"&amp;gt;&lt;BR /&gt; &amp;lt;#if form.showSubmitButton?? &amp;amp;&amp;amp; form.showSubmitButton&amp;gt;&lt;BR /&gt; &amp;lt;input id="${formId}-submit" type="submit" value="${msg("form.button.submit.label")}" /&amp;gt;&amp;nbsp;&lt;BR /&gt; &amp;lt;/#if&amp;gt;&lt;BR /&gt; &amp;lt;#if form.showResetButton?? &amp;amp;&amp;amp; form.showResetButton&amp;gt;&lt;BR /&gt; &amp;lt;input id="${formId}-reset" type="reset" value="${msg("form.button.reset.label")}" /&amp;gt;&amp;nbsp;&lt;BR /&gt; &amp;lt;/#if&amp;gt;&lt;BR /&gt; &amp;lt;#if form.showCancelButton?? &amp;amp;&amp;amp; form.showCancelButton&amp;gt;&lt;BR /&gt; &amp;lt;input id="${formId}-cancel" type="button" value="${msg("form.button.cancel.label")}" /&amp;gt;&lt;BR /&gt; &amp;lt;/#if&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/#macro&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 06:38:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-reset-button-in-alfresco-workflow-form/m-p/103278#M29428</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2019-05-23T06:38:17Z</dc:date>
    </item>
  </channel>
</rss>

