<?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 properly configure the form for editing metadata? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/deleted/m-p/67035#M22460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are few things which needs to be considered, which you need to understand.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 22px;"&gt;&lt;STRONG&gt;&amp;lt;config &amp;gt; Element&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two attributed in config element.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First is &lt;STRONG&gt;evaluator.&lt;/STRONG&gt;If eveluator attribute is set to model-type, this means particular form configured inside this configuration will be opened when the type of object is created.Which mean form is opened in create mode(There is attribute called form.mode which should be create)&lt;/P&gt;&lt;P&gt;Second is &lt;STRONG&gt;condition&lt;/STRONG&gt;,&amp;nbsp;which is used for identification of type or object which is defined inside the content model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one more form which can be configured by giving id in the&amp;nbsp;&lt;STRONG&gt;&amp;lt;form&amp;gt; &lt;/STRONG&gt;tag.If you give&amp;nbsp;&lt;STRONG&gt;doclib-simple-metadata,&lt;/STRONG&gt;then it will open that form in edit properties dialogue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 22px;"&gt;&lt;STRONG&gt;How to create custom form field in share&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While creating custom form control,Inside the ftl file, You need to define an if..else condition for rendering the field in view mode and rendering it in edit mode.If you refer existing textfield.ftl or any other control , inside that there are sections for rendering field in view mode which is your property pane and edit mode, which is edit properties form.&lt;/P&gt;&lt;P&gt;In ftl this can be implemented like below&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;lt;#if form.mode == "view"&amp;gt;&lt;/P&gt;&lt;P&gt;//Code for viewing field value&lt;/P&gt;&lt;P&gt;&amp;lt;#else&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//Code for editing field value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/#if&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jun 2018 15:17:17 GMT</pubDate>
    <dc:creator>krutik_jayswal</dc:creator>
    <dc:date>2018-06-10T15:17:17Z</dc:date>
    <item>
      <title>Deleted.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/deleted/m-p/67033#M22458</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Deleted.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 07:17:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/deleted/m-p/67033#M22458</guid>
      <dc:creator>anon26949</dc:creator>
      <dc:date>2018-06-09T07:17:23Z</dc:date>
    </item>
    <item>
      <title>Deleted.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/deleted/m-p/67034#M22459</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Deleted.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 08:44:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/deleted/m-p/67034#M22459</guid>
      <dc:creator>anon26949</dc:creator>
      <dc:date>2018-06-09T08:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure the form for editing metadata?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/deleted/m-p/67035#M22460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are few things which needs to be considered, which you need to understand.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 22px;"&gt;&lt;STRONG&gt;&amp;lt;config &amp;gt; Element&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two attributed in config element.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First is &lt;STRONG&gt;evaluator.&lt;/STRONG&gt;If eveluator attribute is set to model-type, this means particular form configured inside this configuration will be opened when the type of object is created.Which mean form is opened in create mode(There is attribute called form.mode which should be create)&lt;/P&gt;&lt;P&gt;Second is &lt;STRONG&gt;condition&lt;/STRONG&gt;,&amp;nbsp;which is used for identification of type or object which is defined inside the content model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one more form which can be configured by giving id in the&amp;nbsp;&lt;STRONG&gt;&amp;lt;form&amp;gt; &lt;/STRONG&gt;tag.If you give&amp;nbsp;&lt;STRONG&gt;doclib-simple-metadata,&lt;/STRONG&gt;then it will open that form in edit properties dialogue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 22px;"&gt;&lt;STRONG&gt;How to create custom form field in share&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While creating custom form control,Inside the ftl file, You need to define an if..else condition for rendering the field in view mode and rendering it in edit mode.If you refer existing textfield.ftl or any other control , inside that there are sections for rendering field in view mode which is your property pane and edit mode, which is edit properties form.&lt;/P&gt;&lt;P&gt;In ftl this can be implemented like below&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;lt;#if form.mode == "view"&amp;gt;&lt;/P&gt;&lt;P&gt;//Code for viewing field value&lt;/P&gt;&lt;P&gt;&amp;lt;#else&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//Code for editing field value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/#if&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2018 15:17:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/deleted/m-p/67035#M22460</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-06-10T15:17:17Z</dc:date>
    </item>
  </channel>
</rss>

