<?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: Field validation not working in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286554#M239684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Monica,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to follow this post, it might help you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/form-fields-validation-06012015-1137" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/form-fields-validation-06012015-1137&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 09:11:40 GMT</pubDate>
    <dc:creator>darkredd</dc:creator>
    <dc:date>2015-06-22T09:11:40Z</dc:date>
    <item>
      <title>Field validation not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286553#M239683</link>
      <description>Hi,I try to add email validation to a field with validation handler. In share-form-config-custom.xml, added next lines:&amp;lt;appearance&amp;gt;&amp;nbsp; &amp;lt;field id="my:thirdPartyEmail"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;constraint-handlers&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;constraint type="MANDATORY" validation-handler="Alfresco.forms.validation.email</description>
      <pubDate>Fri, 19 Jun 2015 14:02:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286553#M239683</guid>
      <dc:creator>monicag</dc:creator>
      <dc:date>2015-06-19T14:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Field validation not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286554#M239684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Monica,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to follow this post, it might help you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/form-fields-validation-06012015-1137" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/form-fields-validation-06012015-1137&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:11:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286554#M239684</guid>
      <dc:creator>darkredd</dc:creator>
      <dc:date>2015-06-22T09:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Field validation not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286555#M239685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that there is no &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; &amp;lt;constraint type="MANDATORY" validation-handler="Alfresco.forms.validation.email" event="keyup" /&amp;gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can verify it by yourelf in the file "form-config.xml" under "C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll find different constraints regrouped into the balise &amp;lt;constraint-handlers&amp;gt; &amp;lt;/constraint-handlers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of using this constraint, I advice you to use the validation used in the file "forms-runtime.js " , C:\Alfresco\tomcat\webapps\share\js\forms-runtime.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll find there&amp;nbsp; Alfresco.forms.validation.email , an example of this validation is used in the page of user creation&amp;nbsp; C:\Alfresco\tomcat\webapps\share\components\console\users.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 10:33:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286555#M239685</guid>
      <dc:creator>sofia</dc:creator>
      <dc:date>2015-06-24T10:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field validation not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286556#M239686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the reply. I tried the configuration and the js script from the posts and still the same result. The form is saved without any validation. Used debug in browser and the js validation function is never call. Looks like the constraint handler for the field is not read. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 11:41:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/field-validation-not-working/m-p/286556#M239686</guid>
      <dc:creator>monicag</dc:creator>
      <dc:date>2015-06-24T11:41:07Z</dc:date>
    </item>
  </channel>
</rss>

