cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to Add custom field on Share form

yogeshpj
Star Contributor
Star Contributor
Hi All,

I am trying to add custom field as shown in below code on share form but it is not displaying on share form.

<show id="customField" />

<field id="customField" set="info">
  <control template="/org/alfresco/components/form/controls/info.ftl" />
</field>

I am not getting any error for this but it is not displaying the field on share form.

7 REPLIES 7

mitpatoliya
Star Collaborator
Star Collaborator
You missed your code.

Added Code.

angelborroy
Community Manager Community Manager
Community Manager
Use the force (parameter).

https://wiki.alfresco.com/wiki/Forms#show
Hyland Developer Evangelist

Hi Borroy,

Thanks for your reply but I already tried out that and it is not working.
It seems that dummy fields are not working in share form in 5.0.x version.

Hi Borroy,

Thanks for your reply but I already tried out that and it is not working.
It seems that dummy fields are not working in share form in 5.0.x version.

angelborroy
Community Manager Community Manager
Community Manager
YogeshPJ, are you referring "residual" fields? I've been working with them in 5.0.x a minutes ago…


   <config evaluator="string-compare" condition="eni-add-to-index">
      <forms>
         <form>
            <field-visibility>
               <show id="exp-assoc" />
            </field-visibility>
            <appearance>
               <field id="exp-assoc" label-id="prop.eni_title">
                  <control template="/es/keensoft/components/form/controls/association.ftl">
                     <control-param name="startLocation">/app:company_home/app:dictionary/app:publishing_root/cm:Expedientes</control-param>
                     <control-param name="displayMode">list</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
Hyland Developer Evangelist

That is dummy field and it is not present in model file.
I want to document preview on task edit form for which I have made custom form control.To show that I am using dummy field.