<?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: Relevant formula that references Range question type not working in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168989#M42433</link>
    <description>&lt;P&gt;Ohhh its a range question!&amp;nbsp; They seem to be funky in the way they work since it stores numbers.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got&amp;nbsp;string(${Inclusions_Other}) != '' to work fine.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then my guess is if they also pick 0 you want to hide it right?&amp;nbsp; That one was funky too but this does it.&lt;/P&gt;&lt;P&gt;string(${Inclusions_Other}) != '' and string(${Inclusions_Other}) != '0'&lt;/P&gt;&lt;P&gt;Best way to test these is make a note field with the calc of&amp;nbsp;${Inclusions_Other} so you can see what is going on.&amp;nbsp; Way easier to troubleshoot.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 18:43:39 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2022-04-28T18:43:39Z</dc:date>
    <item>
      <title>Relevant formula that references Range question type not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168845#M42421</link>
      <description>&lt;P&gt;Hello, community -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having difficulty getting a formula I've placed in a text field's "relevant" column (on XLSForm) to work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the text field ${Inclusions_Other_Desc} to be visible if the user chooses a value in a range question ${Inclusions_Other}. If the user doesn't interact with that range slider (presumably because there are no "Other" inclusions), then the ${Inclusions_Other_Desc} isn't needed, so it'd be hidden. So in it's simplest terms show the text box if the range slider is not null/empty.&lt;/P&gt;&lt;P&gt;When I try the form out, the text field is visible regardless of the ${Inclusions_Other} selection.&amp;nbsp;Here's the formula I have in the ${Inclusions_Other_Desc} 'relevant' column:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;not(selected(${Inclusions_Other},''))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've also tried integer-focused formulas like &lt;EM&gt;${Inclusions_Other}&amp;gt;0 &lt;/EM&gt;in the relevant column&lt;EM&gt; t&lt;/EM&gt;o no avail.&lt;/P&gt;&lt;P&gt;I've read through ESRI's Formulas guidance and focused on the discussions relevant to null/empty values and the unique setup of range questions, but I'm clearly missing something.&lt;/P&gt;&lt;P&gt;Could someone chime in on where I might be off course?&lt;/P&gt;&lt;P&gt;Thank you in advance -&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 15:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168845#M42421</guid>
      <dc:creator>archeomason</dc:creator>
      <dc:date>2022-04-28T15:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Relevant formula that references Range question type not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168850#M42422</link>
      <description>&lt;P&gt;Try&amp;nbsp;${Inclusions_Other} = ''&amp;nbsp; Also string-length(${Inclusions_Other})&amp;gt;0 can work in some situations.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 16:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168850#M42422</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-04-28T16:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Relevant formula that references Range question type not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168896#M42424</link>
      <description>&lt;P&gt;Thank you for those suggestions,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;. I tried them both out and, unfortunately, neither worked.&lt;/P&gt;&lt;P&gt;The first suggestion resulted in no change (I'd tried that one before but gave it another go). The second prompted an error message.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 16:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168896#M42424</guid>
      <dc:creator>archeomason</dc:creator>
      <dc:date>2022-04-28T16:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Relevant formula that references Range question type not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168899#M42425</link>
      <description>&lt;P&gt;Can you post the form for troubleshooting?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 16:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168899#M42425</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-04-28T16:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Relevant formula that references Range question type not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168910#M42427</link>
      <description>&lt;P&gt;Sure thing... I'm uploading it here. For what it's worth, this is the same form that I'm having trouble with the conditional&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-repeat-section-integer-question-s/m-p/1168904#M42426" target="_blank" rel="noopener"&gt;If() calculation problem I posted about this morning as well.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 17:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168910#M42427</guid>
      <dc:creator>archeomason</dc:creator>
      <dc:date>2022-04-28T17:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Relevant formula that references Range question type not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168989#M42433</link>
      <description>&lt;P&gt;Ohhh its a range question!&amp;nbsp; They seem to be funky in the way they work since it stores numbers.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got&amp;nbsp;string(${Inclusions_Other}) != '' to work fine.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then my guess is if they also pick 0 you want to hide it right?&amp;nbsp; That one was funky too but this does it.&lt;/P&gt;&lt;P&gt;string(${Inclusions_Other}) != '' and string(${Inclusions_Other}) != '0'&lt;/P&gt;&lt;P&gt;Best way to test these is make a note field with the calc of&amp;nbsp;${Inclusions_Other} so you can see what is going on.&amp;nbsp; Way easier to troubleshoot.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 18:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1168989#M42433</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-04-28T18:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Relevant formula that references Range question type not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1169079#M42444</link>
      <description>&lt;P&gt;Well, I bow to you, good sir...&lt;/P&gt;&lt;P&gt;Thank you very much. Your suggestion worked perfectly. I hadn't noticed the != operator in the documentation. That was the key. Thank you for the suggestion, too. I'll do that.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 22:03:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-formula-that-references-range-question/m-p/1169079#M42444</guid>
      <dc:creator>archeomason</dc:creator>
      <dc:date>2022-04-28T22:03:49Z</dc:date>
    </item>
  </channel>
</rss>

