<?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 numeric field validation problem in advanced search screen in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/numeric-field-validation-problem-in-advanced-search-screen/m-p/116061#M32185</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I defined some custom metadata (numeric and text) with constraint. I can edit it in share and all the constraint works fine. Like only numeric or specific length. I also customized the advanced search screen to use my custom field but the constraint did not work on the numeric field. I can input any character as much as i want without any validation. How come the validation works when editing and not when searching?&lt;/P&gt;&lt;P&gt;New field declaration:&lt;/P&gt;&lt;P&gt;&amp;lt;property name="fadq:no_clie"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Numéro du client&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Numéro du client&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;type&amp;gt;d:int&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt;&amp;lt;index enabled="true"&amp;gt;&lt;BR /&gt;&amp;lt;tokenised&amp;gt;TRUE&amp;lt;/tokenised&amp;gt;&lt;BR /&gt;&amp;lt;facetable&amp;gt;true&amp;lt;/facetable&amp;gt;&lt;BR /&gt;&amp;lt;/index&amp;gt;&lt;BR /&gt;&amp;lt;constraints&amp;gt;&lt;BR /&gt;&amp;lt;constraint name="fadq:MINMAX_790bb2f8-0589-4296-8919-278bc24758fd" type="MINMAX"&amp;gt;&lt;BR /&gt;&amp;lt;parameter name="minValue"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;0.0&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/parameter&amp;gt;&lt;BR /&gt;&amp;lt;parameter name="maxValue"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;9999999.0&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/parameter&amp;gt;&lt;BR /&gt;&amp;lt;/constraint&amp;gt;&lt;BR /&gt;&amp;lt;/constraints&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;Field used in advanced search:&lt;/P&gt;&lt;P&gt;&amp;lt;field id="fadq:no_clie" label-id="Numéro du client" set="deuxCol"&amp;gt;&lt;BR /&gt;&amp;lt;control template="/org/alfresco/components/form/controls/number.ftl" /&amp;gt;&lt;BR /&gt;&amp;lt;/field&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2019 18:19:38 GMT</pubDate>
    <dc:creator>nadeaumr</dc:creator>
    <dc:date>2019-11-20T18:19:38Z</dc:date>
    <item>
      <title>numeric field validation problem in advanced search screen</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/numeric-field-validation-problem-in-advanced-search-screen/m-p/116061#M32185</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I defined some custom metadata (numeric and text) with constraint. I can edit it in share and all the constraint works fine. Like only numeric or specific length. I also customized the advanced search screen to use my custom field but the constraint did not work on the numeric field. I can input any character as much as i want without any validation. How come the validation works when editing and not when searching?&lt;/P&gt;&lt;P&gt;New field declaration:&lt;/P&gt;&lt;P&gt;&amp;lt;property name="fadq:no_clie"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Numéro du client&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Numéro du client&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;type&amp;gt;d:int&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt;&amp;lt;index enabled="true"&amp;gt;&lt;BR /&gt;&amp;lt;tokenised&amp;gt;TRUE&amp;lt;/tokenised&amp;gt;&lt;BR /&gt;&amp;lt;facetable&amp;gt;true&amp;lt;/facetable&amp;gt;&lt;BR /&gt;&amp;lt;/index&amp;gt;&lt;BR /&gt;&amp;lt;constraints&amp;gt;&lt;BR /&gt;&amp;lt;constraint name="fadq:MINMAX_790bb2f8-0589-4296-8919-278bc24758fd" type="MINMAX"&amp;gt;&lt;BR /&gt;&amp;lt;parameter name="minValue"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;0.0&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/parameter&amp;gt;&lt;BR /&gt;&amp;lt;parameter name="maxValue"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;9999999.0&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/parameter&amp;gt;&lt;BR /&gt;&amp;lt;/constraint&amp;gt;&lt;BR /&gt;&amp;lt;/constraints&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;Field used in advanced search:&lt;/P&gt;&lt;P&gt;&amp;lt;field id="fadq:no_clie" label-id="Numéro du client" set="deuxCol"&amp;gt;&lt;BR /&gt;&amp;lt;control template="/org/alfresco/components/form/controls/number.ftl" /&amp;gt;&lt;BR /&gt;&amp;lt;/field&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 18:19:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/numeric-field-validation-problem-in-advanced-search-screen/m-p/116061#M32185</guid>
      <dc:creator>nadeaumr</dc:creator>
      <dc:date>2019-11-20T18:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: numeric field validation problem in advanced search screen</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/numeric-field-validation-problem-in-advanced-search-screen/m-p/116062#M32186</link>
      <description>&lt;P&gt;Does any information here assist you?&lt;BR /&gt;&lt;A href="https://docs.alfresco.com/community/concepts/dev-extensions-share-form-field-validation-handlers.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/community/concepts/dev-extensions-share-form-field-validation-handlers.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:56:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/numeric-field-validation-problem-in-advanced-search-screen/m-p/116062#M32186</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2019-11-25T14:56:08Z</dc:date>
    </item>
  </channel>
</rss>

