<?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 How to validate a numeric range float field in Nuxeo Studio on a form layout? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-validate-a-numeric-range-float-field-in-nuxeo-studio-on-a/m-p/323810#M10811</link>
    <description>&lt;P&gt;Using purely Nuxeo Studio, how do you go about validating a numeric range for a float field in a form layout?&lt;/P&gt;
&lt;P&gt;Currently, I have the validation set in the schema field properties that this float can only be values in the inclusive-range: [0.1, 9.9].&lt;/P&gt;
&lt;P&gt;However, when the user goes to submit this form, they can still post the request but the form is not saved (as expected) &amp;amp; a 'Transaction Failed' notification is displayed in the upper-right corner of the screen.&lt;/P&gt;
&lt;P&gt;How do I set this validation to occur in the form layout?&lt;/P&gt;
&lt;P&gt;For example, if you set a field to be required in a form layout, it will not let the user submit the form and will show a 'Value is required' error message in the layout. How do I achieve this for a numeric range?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 21:57:48 GMT</pubDate>
    <dc:creator>Matthew_Roy</dc:creator>
    <dc:date>2019-10-02T21:57:48Z</dc:date>
    <item>
      <title>How to validate a numeric range float field in Nuxeo Studio on a form layout?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-validate-a-numeric-range-float-field-in-nuxeo-studio-on-a/m-p/323810#M10811</link>
      <description>&lt;P&gt;Using purely Nuxeo Studio, how do you go about validating a numeric range for a float field in a form layout?&lt;/P&gt;
&lt;P&gt;Currently, I have the validation set in the schema field properties that this float can only be values in the inclusive-range: [0.1, 9.9].&lt;/P&gt;
&lt;P&gt;However, when the user goes to submit this form, they can still post the request but the form is not saved (as expected) &amp;amp; a 'Transaction Failed' notification is displayed in the upper-right corner of the screen.&lt;/P&gt;
&lt;P&gt;How do I set this validation to occur in the form layout?&lt;/P&gt;
&lt;P&gt;For example, if you set a field to be required in a form layout, it will not let the user submit the form and will show a 'Value is required' error message in the layout. How do I achieve this for a numeric range?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 21:57:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-validate-a-numeric-range-float-field-in-nuxeo-studio-on-a/m-p/323810#M10811</guid>
      <dc:creator>Matthew_Roy</dc:creator>
      <dc:date>2019-10-02T21:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to validate a numeric range float field in Nuxeo Studio on a form layout?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-validate-a-numeric-range-float-field-in-nuxeo-studio-on-a/m-p/323811#M10812</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If you set your integer property as required with a numeric range, then Studio Designer will automatically generate the suitable UI element. For example, this is what it typically generates:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-input role="widget" value="{{document.properties.myschema:test}}" label="Test" type="number" min="3" max="7" required="true"&amp;gt;&amp;lt;/nuxeo-input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, you can still play with the attributes of our elements anyway.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 22:30:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-validate-a-numeric-range-float-field-in-nuxeo-studio-on-a/m-p/323811#M10812</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2019-10-02T22:30:17Z</dc:date>
    </item>
  </channel>
</rss>

