<?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: string-length expression on decimal value returns 0 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161202#M41880</link>
    <description>&lt;P&gt;Yes I tried that already and it does not work.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 15:49:46 GMT</pubDate>
    <dc:creator>Anne-MarieDubois</dc:creator>
    <dc:date>2022-04-05T15:49:46Z</dc:date>
    <item>
      <title>string-length expression on decimal value returns 0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161173#M41876</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use an expression to evaluate if a decimal field is empty or not in Survey123. I have found this option :&lt;/P&gt;&lt;P&gt;(string-length(${latitude}))&amp;gt;0&lt;/P&gt;&lt;P&gt;Unfortunately, this returns the "string-length(${latitude})" portion of this expression returns a value of 0 whenever I try to enter a decimal value.&lt;/P&gt;&lt;P&gt;Example: decimal not working&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_0-1649171520428.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38149iBF8B9DF174F74869/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_0-1649171520428.png" alt="AnneMarieDubois_0-1649171520428.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;example: integer works&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_1-1649171577137.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38150i16E40B39BC9084B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_1-1649171577137.png" alt="AnneMarieDubois_1-1649171577137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried these altenatives without sucess:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;(string-length(number(${latitude})))&amp;gt;0&lt;/LI&gt;&lt;LI&gt;(string-length(number(${latitude})))&amp;gt;0.0&lt;/LI&gt;&lt;LI&gt;${latitude} != 'NaN'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can anyone help me finding a way to identify empty decimal fields ?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Anne-Marie&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161173#M41876</guid>
      <dc:creator>Anne-MarieDubois</dc:creator>
      <dc:date>2022-04-05T15:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: string-length expression on decimal value returns 0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161185#M41877</link>
      <description>&lt;P&gt;Checking on numbers can get tricky.&amp;nbsp; Have you tried&amp;nbsp;&lt;SPAN&gt;${latitude} != '' yet?&amp;nbsp; Any empty field is usually empty string, even numbers.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161185#M41877</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-04-05T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: string-length expression on decimal value returns 0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161202#M41880</link>
      <description>&lt;P&gt;Yes I tried that already and it does not work.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161202#M41880</guid>
      <dc:creator>Anne-MarieDubois</dc:creator>
      <dc:date>2022-04-05T15:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: string-length expression on decimal value returns 0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161205#M41881</link>
      <description>&lt;P&gt;What about = 0 or != 0 that sometimes works for me.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161205#M41881</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-04-05T15:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: string-length expression on decimal value returns 0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161215#M41882</link>
      <description>&lt;P&gt;That doesn't work either. The thing is is that the available expressions don't seem to make a diffrence between an empty field OR a decimal field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_0-1649174463720.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38161i2FE2383B7591356C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_0-1649174463720.png" alt="AnneMarieDubois_0-1649174463720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_1-1649174491816.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38162i85EFD005C5CE5EB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_1-1649174491816.png" alt="AnneMarieDubois_1-1649174491816.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_2-1649174528156.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38164i3B17BD791633E08E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_2-1649174528156.png" alt="AnneMarieDubois_2-1649174528156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:06:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161215#M41882</guid>
      <dc:creator>Anne-MarieDubois</dc:creator>
      <dc:date>2022-04-05T16:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: string-length expression on decimal value returns 0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161478#M41896</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try first converting it to a string and then checking it's length:&lt;/P&gt;&lt;P&gt;string-length(string(${&lt;SPAN&gt;latitude&lt;/SPAN&gt;}))=0&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 07:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1161478#M41896</guid>
      <dc:creator>DeonLengton</dc:creator>
      <dc:date>2022-04-06T07:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: string-length expression on decimal value returns 0</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1171260#M42603</link>
      <description>&lt;P&gt;Still same issue. It only works for integers.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 19:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-length-expression-on-decimal-value-returns/m-p/1171260#M42603</guid>
      <dc:creator>Anne-MarieDubois</dc:creator>
      <dc:date>2022-05-05T19:33:56Z</dc:date>
    </item>
  </channel>
</rss>

