<?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: Validation handler not deploying javascript in war in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68314#M22689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this way,you will get value of current field.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #727174; border: 0px;"&gt;if (typeof MyCustomNamespace == "undefined" || !MyCustomNamespace) {&lt;BR /&gt;var MyCustomNamespace = {};&lt;BR /&gt;}&lt;/P&gt;&lt;P style="color: #727174; border: 0px;"&gt;MyCustomNamespace.validateForm =&lt;BR /&gt;function v&lt;SPAN style="background-color: #f6f6f6; border: 0px; font-weight: inherit;"&gt;alidateForm&lt;/SPAN&gt;(field, args, event, form, silent, message) {&lt;BR /&gt;console.log(field.value);&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2019 04:30:27 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2019-01-30T04:30:27Z</dc:date>
    <item>
      <title>Validation handler not deploying javascript in war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68310#M22685</link>
      <description>Hello,I am having a problem creating a custom validation handler in my alfresco. Whenever I start alfresco the war doesn't include my javascript file (test.js) that I placed inside the share project in the resources folder. When I try to use the form and the handler should come into action I get a e</description>
      <pubDate>Thu, 03 Jan 2019 18:39:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68310#M22685</guid>
      <dc:creator>gscorreia93</dc:creator>
      <dc:date>2019-01-03T18:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Validation handler not deploying javascript in war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68311#M22686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use alfresco sdk for any customization.It will be easy to manage and deployment without affecting other process.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;share-custom-config.xml :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;your code with custom handler and js file path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;your js file should be in /web/js/xxx.js&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Thnaks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Sanjay&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 04:40:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68311#M22686</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-01-21T04:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Validation handler not deploying javascript in war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68312#M22687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to include the javascript file as you said. Thank you.&lt;/P&gt;&lt;P&gt;Now the problem is the validation function is never called whenever the event happens, although it is defined in the&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;share-custom-config.xml.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;I have tried several setups with or without the type defined. But it never gets called...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;Am I missing something?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;Thanks in advance for any help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 16:10:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68312#M22687</guid>
      <dc:creator>gscorreia93</dc:creator>
      <dc:date>2019-01-29T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Validation handler not deploying javascript in war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68313#M22688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved, thanks anyway.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how to pass arguments for the validation function from the form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 19:24:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68313#M22688</guid>
      <dc:creator>gscorreia93</dc:creator>
      <dc:date>2019-01-29T19:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Validation handler not deploying javascript in war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68314#M22689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this way,you will get value of current field.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #727174; border: 0px;"&gt;if (typeof MyCustomNamespace == "undefined" || !MyCustomNamespace) {&lt;BR /&gt;var MyCustomNamespace = {};&lt;BR /&gt;}&lt;/P&gt;&lt;P style="color: #727174; border: 0px;"&gt;MyCustomNamespace.validateForm =&lt;BR /&gt;function v&lt;SPAN style="background-color: #f6f6f6; border: 0px; font-weight: inherit;"&gt;alidateForm&lt;/SPAN&gt;(field, args, event, form, silent, message) {&lt;BR /&gt;console.log(field.value);&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 04:30:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/validation-handler-not-deploying-javascript-in-war/m-p/68314#M22689</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-01-30T04:30:27Z</dc:date>
    </item>
  </channel>
</rss>

