<?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: Client validation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263207#M216337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is possible to block the save button, but it does not appear to be possible to block the enter key in all cases from submitting the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a code snippet how to disable the save button in the common.js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.getElementById('&amp;lt;NameOfYourButton&amp;gt;).disabled=true;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2012 19:12:38 GMT</pubDate>
    <dc:creator>chfi</dc:creator>
    <dc:date>2012-04-26T19:12:38Z</dc:date>
    <item>
      <title>Client validation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263204#M216334</link>
      <description>Is there some client validation that can be performed, e.g. the user edits some metadata values =&amp;gt; now I want to limit the number of characters or just allow a maximum integer value for certain properties =&amp;gt; is there a way to realize this in OpenWorkdesk?</description>
      <pubDate>Wed, 25 Apr 2012 19:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263204#M216334</guid>
      <dc:creator>popeye</dc:creator>
      <dc:date>2012-04-25T19:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Client validation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263205#M216335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Popeye,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yes we have a concept in OpenWorkdesk that supports your requested client validation. There is a JS file "common.js" that is located in your repository in the folder "js". This JS file has a method "onCustomValidation()" that is always called after the user has entered some text into a input field =&amp;gt; here you can implement your validation, e.g. limit the text length of the property "cmis:document.cmis:name":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;function onCustomValidation (classname, javaclassname, fieldprovidertype, fieldprovidername, fieldid, value)&lt;BR /&gt;{&lt;BR /&gt;if(classname=="cmis:document.cmis:name")&lt;BR /&gt;{&lt;BR /&gt;if(value.length&amp;gt;10)&lt;BR /&gt;{&lt;BR /&gt;//limit the string to the first 10 characters&lt;BR /&gt;document.getElementById(fieldid).value=value.substring(0,10);&lt;BR /&gt;return(" The maximum length of this property should be less than 10 characters.");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;return(null);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;return(null);&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 06:44:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263205#M216335</guid>
      <dc:creator>vahe</dc:creator>
      <dc:date>2012-04-26T06:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Client validation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263206#M216336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK thanks, that sounds good and covers most of my requirements. But is there also a way to disable the save button…I really don't want to allow the user to save the changes…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 19:04:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263206#M216336</guid>
      <dc:creator>popeye</dc:creator>
      <dc:date>2012-04-26T19:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Client validation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263207#M216337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is possible to block the save button, but it does not appear to be possible to block the enter key in all cases from submitting the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a code snippet how to disable the save button in the common.js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.getElementById('&amp;lt;NameOfYourButton&amp;gt;).disabled=true;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 19:12:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/client-validation/m-p/263207#M216337</guid>
      <dc:creator>chfi</dc:creator>
      <dc:date>2012-04-26T19:12:38Z</dc:date>
    </item>
  </channel>
</rss>

