<?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 Require decimal  in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/require-decimal/m-p/813079#M13879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a decimal data type in Survey123 to match my data entry QA/QC requirements and I'm running into a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my example:&amp;nbsp; Enter Water temperature which can range from -1.0 to 35.0 and&amp;nbsp;we require temperature is recorded to a tenth of a degree.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we want to constrain to this range and require&amp;nbsp;one decimal place (tenths).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this code in the constraint field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&amp;gt;-1.1 and .&amp;lt;35.0 and regex(., '^-?[0-9]{1,2}\.[0-9]{1}$')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the final value in the&amp;nbsp;tenths place&amp;nbsp;is 0 (e.g., 24.0) I get a constraint error, it will accept any value 1-9.&lt;/P&gt;&lt;P&gt;If I don't require a digit in the tenths place (....&lt;SPAN&gt;\.[0-9]{1}...) it will allow the zero in the tenths place&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried using an inputMask but I don't like that I would have to require 4 digits to allow for the full range (e.g., 26.4) which would require entering a leading 0 for temps in the single digits (e.g., 05.4).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm new to this so any insights would be appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;James I tagged you since you provided an answer for someone else that is super close to getting at this for me!&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2019 17:41:03 GMT</pubDate>
    <dc:creator>NathanDammeyer</dc:creator>
    <dc:date>2019-02-11T17:41:03Z</dc:date>
    <item>
      <title>Require decimal</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-decimal/m-p/813079#M13879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a decimal data type in Survey123 to match my data entry QA/QC requirements and I'm running into a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my example:&amp;nbsp; Enter Water temperature which can range from -1.0 to 35.0 and&amp;nbsp;we require temperature is recorded to a tenth of a degree.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we want to constrain to this range and require&amp;nbsp;one decimal place (tenths).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this code in the constraint field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&amp;gt;-1.1 and .&amp;lt;35.0 and regex(., '^-?[0-9]{1,2}\.[0-9]{1}$')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the final value in the&amp;nbsp;tenths place&amp;nbsp;is 0 (e.g., 24.0) I get a constraint error, it will accept any value 1-9.&lt;/P&gt;&lt;P&gt;If I don't require a digit in the tenths place (....&lt;SPAN&gt;\.[0-9]{1}...) it will allow the zero in the tenths place&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried using an inputMask but I don't like that I would have to require 4 digits to allow for the full range (e.g., 26.4) which would require entering a leading 0 for temps in the single digits (e.g., 05.4).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm new to this so any insights would be appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;James I tagged you since you provided an answer for someone else that is super close to getting at this for me!&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 17:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-decimal/m-p/813079#M13879</guid>
      <dc:creator>NathanDammeyer</dc:creator>
      <dc:date>2019-02-11T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Require decimal</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-decimal/m-p/813080#M13880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I think you're coming into conflict with the fact that the constraint will be evaluated as a number - '24.0' will be stored as '24' as they are numerically equivalent, leading to the string check to not work&lt;/P&gt;&lt;P&gt;Aside from the input mask, another idea would be to&amp;nbsp;set the appearance to spinner and have the default value be '0.0'- this will cause the spinner to increment in tenths.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 21:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-decimal/m-p/813080#M13880</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-02-11T21:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Require decimal</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-decimal/m-p/813081#M13881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We thought that might be the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't understand why excel stores a number with a 0&amp;nbsp;in the last decimal place like that (24 vs 24.0) and doesn't allow you to capture the 0 as a significant digit....anyway rant over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, I like the spinner idea as we have a limited range of values and will also keep the data entry folks thinking about the appropriate significant digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-decimal/m-p/813081#M13881</guid>
      <dc:creator>NathanDammeyer</dc:creator>
      <dc:date>2019-02-12T12:27:36Z</dc:date>
    </item>
  </channel>
</rss>

