AnsweredAssumed Answered

How to remove "General Info" section in workflow-details form

Question asked by marcollirite on May 30, 2017

Hi all, I am trying to configure the form displayed when I view the details of a workflow. I can generate a custom form, but the "General Info" sections which comes with the default form is still displayed. I do not want it to be displayed. My configuration is as follows:

 

<config evaluator="task-type" condition="vorwf:allocateDocumentProperties" replace="true">
   <forms>
      <form id="workflow-details">
         <field-visibility>
            <show id="bpm:workflowDescription" />
            <show id="bpm:workflowDueDate" />   

            <show id="bpm:workflowPriority" />
            <show id="vorwf:author" />
            <show id="vorwf:reviewer" />
            <show id="vorwf:approver" />
            <show id="vorwf:prevComment" />
            <show id="packageItems" />
            <show id="bpm:comment" />
            <show id="transitions" />
         </field-visibility>
         <appearance>
            <set id="information" appearance="title" label="Workflow Information" />
            <set id="wfinfo" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
            <set id="assignees" appearance="title" label="Assignees" template="/org/alfresco/components/form/3-column-set.ftl" />
            <set id="items" appearance="title" label="Workflow Documents" />
            <set id="outcome" appearance="" />
            <field id="bpm:workflowDescription" label="Message" set="information" read-only="true">
               <control template="/org/alfresco/components/form/controls/textarea.ftl">
                  <control-param name="style">width: 95%</control-param>
               </control>
            </field>
            <field id="bpm:workflowDueDate" label="Due Date" set="wfinfo" read-only="true">
               <control template="/org/alfresco/components/form/controls/date.ftl">
               <control-param name="showTime">false</control-param>
                  <control-param name="submitTime">false</control-param>
               </control>
            </field>
            <field id="bpm:workflowPriority" label="Priority" set="wfinfo" read-only="true">
               <control template="controls/workflow/priority.ftl" />
            </field>
            <field id="vorwf:prevComment" label="Comments from workflow initiator" set="wfinfo" read-only="true">
               <control template="/org/alfresco/components/form/controls/textarea.ftl">
                  <control-param name="saveLineBreaks">true</control-param>
               </control>
            </field>
            <field id="vorwf:author" label="Book Captain" set="assignees">
               <control template="/org/alfresco/components/form/controls/authority.ftl" />
            </field>
            <field id="vorwf:reviewer" label="Reviewer" set="assignees" >
               <control template="/org/alfresco/components/form/controls/authority.ftl" />
            </field>
            <field id="vorwf:approver" label="Authoriser" set="assignees" >
               <control template="/org/alfresco/components/form/controls/authority.ftl" />
            </field>
            <field id="packageItems" set="items" />
            <field id="bpm:comment" label="Comments" set="outcome" >
               <control template="/org/alfresco/components/form/controls/textarea.ftl">
                  <control-param name="saveLineBreaks">true</control-param>
               </control>
            </field>
            <field id="transitions" set="outcome" />
         </appearance>
      </form>
   </forms>
</config>

If anyone has any ideas please let me know!

 

Marcus

Outcomes