AnsweredAssumed Answered

Custom Form for Creation Folder

Question asked by jriffo on Jul 8, 2016
Latest reply on Nov 4, 2016 by georgera
What condition and evaluator should be used to show a form to create a folder in share-form-config.xml?

<!– cm:folder type (creating nodes) –>
   <config evaluator="string-compare" condition="cm:name=OficinaPartes">
      <forms>
         <!– Document Library Common form –>
         <form id="doclib-common">
            <field-visibility>
               <show id="cm:name" />
               <show id="scjmodel:matCarp" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
            <create-form template="../documentlibrary/forms/doclib-common.ftl" />
            <appearance>
               <field id="cm:name">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" >
                     <control-param name="maxLength">255</control-param>
           <control-param name="nombreCarpeta">nombreCarpeta</control-param>
                  </control>
               </field>
               <field id="scjmodel:matCarp">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="scjmodel:matCarp" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
         </form>
      </forms>
   </config>

Outcomes