<?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 Adding custom js to model created through Model Manager in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-js-to-model-created-through-model-manager/m-p/290648#M243778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created a model using Model Manager. In the model I have created one Aspects with custom fields. I added this Aspect to a file through "manage Aspect" option. There is 5 drop downs in the Aspect's form like domain, php, java, oracle and dot net. If user select a value in domain drop down, based on the value selected that respective drop down will display and others will be hidden.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg: If I have 3 drop downs like domain, php, java&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Initially php and java drop downs will be hidden. Under domain we have below values&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;php&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if user selects php, then php dropdown will display and other will hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if user selects java, then java dropdown will display and other will hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for this kind of functionality. If any one knows, please guide me how to achieve this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Alfresco Community - 5.1.0 (r122274-b3) version and ubuntu operating system&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 06:32:51 GMT</pubDate>
    <dc:creator>jakeer</dc:creator>
    <dc:date>2016-03-17T06:32:51Z</dc:date>
    <item>
      <title>Adding custom js to model created through Model Manager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-js-to-model-created-through-model-manager/m-p/290648#M243778</link>
      <description>I have created a model using Model Manager. In the model I have created one Aspects with custom fields. I added this Aspect to a file through "manage Aspect" option. There is 5 drop downs in the Aspect's form like domain, php, java, oracle and dot net. If user select a value in domain drop down, bas</description>
      <pubDate>Thu, 17 Mar 2016 06:32:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-js-to-model-created-through-model-manager/m-p/290648#M243778</guid>
      <dc:creator>jakeer</dc:creator>
      <dc:date>2016-03-17T06:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom js to model created through Model Manager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-js-to-model-created-through-model-manager/m-p/290649#M243779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are many different ways you could implement this. Unfortunately, none of them are point-and-click via the form designer or form layout tool in the GUI with 5.1. You'll have to do it with a small customization and some client-side JavaScript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One approach is to use the Share form configuration XML to point each of those three fields at a custom form control. Custom form controls are just freemarker templates, which are kind of like JSPs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the custom form control, you can add some JavaScript. That JavaScript can use something like JQuery to manipulate the DOM based on the values selected. For example, you could have a function that binds to the dropdown's onChange event, and then shows or hides the DIVs that wrap the other two fields accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you or someone on your team knows JavaScript and JQuery, this should be a fairly straightforward little customization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 22:31:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-js-to-model-created-through-model-manager/m-p/290649#M243779</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2016-04-11T22:31:29Z</dc:date>
    </item>
  </channel>
</rss>

