<?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 Expression - multiple parameters in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-expression-multiple-parameters/m-p/1224681#M45514</link>
    <description>&lt;P&gt;Of course!&lt;/P&gt;&lt;P&gt;Check out here for more guidance&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" target="_blank" rel="noopener"&gt;Formulas—ArcGIS Survey123 | Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Also:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-hidden-relevant-and/ba-p/1165842" target="_blank"&gt;Survey123 Tricks of the Trade: hidden, relevant an... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your exact formula will vary by question type.&lt;/P&gt;&lt;P&gt;For two choice questions:&lt;/P&gt;&lt;PRE&gt; (selected(${example1}, '1') or selected(${example1}, '4')) and (selected(${example2},'yes') or (selected(${example2},'maybe')))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For two text questions:&lt;/P&gt;&lt;PRE&gt;((${example4} = '1') or (${example4} = '4')) and ((${example5}= 'yes') or (${example5}= 'maybe'))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remember to put parentheses around each set of conditions or else it gets the order of operations wrong and really messes things up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 13:53:29 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2022-10-24T13:53:29Z</dc:date>
    <item>
      <title>Relevant Expression - multiple parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-expression-multiple-parameters/m-p/1224623#M45509</link>
      <description>&lt;P&gt;Is it possible to have multiple conditions in a Survey123 relevant expression?&lt;/P&gt;&lt;P&gt;I'm looking to only show questions if conditions from multiple questions are met. In simplest terms:&lt;/P&gt;&lt;P&gt;If:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;answer to Question 1 = 1 or 14 and &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;answer to Question 2 = 'X' or 'Y'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;show the question, otherwise, don't show the question.&lt;/P&gt;&lt;P&gt;Such an expression would work well in SQL, with appropriately placed brackets, but various combinations/orders. The answers are all referring to Names, not labels, in the choices list.&lt;/P&gt;&lt;P&gt;I'm thinking something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;selected(${Accessible},'1') or selected(${Accessible},'14') and selected(${Conditions},'X') or&amp;nbsp;selected(${Conditions},'Y')&lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Any guidance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Skerm&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 10:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-expression-multiple-parameters/m-p/1224623#M45509</guid>
      <dc:creator>Skerm</dc:creator>
      <dc:date>2022-10-24T10:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Relevant Expression - multiple parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-expression-multiple-parameters/m-p/1224681#M45514</link>
      <description>&lt;P&gt;Of course!&lt;/P&gt;&lt;P&gt;Check out here for more guidance&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" target="_blank" rel="noopener"&gt;Formulas—ArcGIS Survey123 | Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Also:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-hidden-relevant-and/ba-p/1165842" target="_blank"&gt;Survey123 Tricks of the Trade: hidden, relevant an... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your exact formula will vary by question type.&lt;/P&gt;&lt;P&gt;For two choice questions:&lt;/P&gt;&lt;PRE&gt; (selected(${example1}, '1') or selected(${example1}, '4')) and (selected(${example2},'yes') or (selected(${example2},'maybe')))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For two text questions:&lt;/P&gt;&lt;PRE&gt;((${example4} = '1') or (${example4} = '4')) and ((${example5}= 'yes') or (${example5}= 'maybe'))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remember to put parentheses around each set of conditions or else it gets the order of operations wrong and really messes things up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 13:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-expression-multiple-parameters/m-p/1224681#M45514</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2022-10-24T13:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Relevant Expression - multiple parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-expression-multiple-parameters/m-p/1224691#M45515</link>
      <description>&lt;P&gt;I don't see why this wouldn't be as simple as adding parentheses.&lt;/P&gt;&lt;PRE&gt;(selected(${question1}, 'B') or selected(${question1},'C')) and (selected(${question2}, 'E') or selected(${question2}, 'F'))&lt;/PRE&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="ArcGISSurvey123Connect_PxOGCPOxpq.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54241i4609EB94E533EF05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArcGISSurvey123Connect_PxOGCPOxpq.gif" alt="ArcGISSurvey123Connect_PxOGCPOxpq.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 14:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-expression-multiple-parameters/m-p/1224691#M45515</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-24T14:15:45Z</dc:date>
    </item>
  </channel>
</rss>

