<?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: Compare two survey questions in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/compare-two-survey-questions/m-p/794136#M8987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved the issue with this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((selected(${lst_missionstatus},${note_default_page})), ${note_default_page}, ${lst_missionstatus})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it did not do what I wanted to accomplish for my relevant field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up with this.&lt;/P&gt;&lt;P&gt;if((selected(${lst_missionstatus},'')), ${note_default_page}, ${lst_missionstatus})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge was note_default_page is loaded on form load and the other one is populated with a select, so on form load the question is always null. So I just reversed the logic and now its working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 19:55:24 GMT</pubDate>
    <dc:creator>RenatoSalvaleon</dc:creator>
    <dc:date>2017-10-11T19:55:24Z</dc:date>
    <item>
      <title>Compare two survey questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/compare-two-survey-questions/m-p/794135#M8986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the If function, does Survey123 allow the use of a conditional formula that compares two answers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my formula on the calculation cell:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;STRONG&gt;(selected(${lst_missionstatus})=${note_default_page})&lt;/STRONG&gt;, &lt;EM&gt;${lst_missionstatus}&lt;/EM&gt;, &lt;EM&gt;${note_default_page}&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the value of lst_missionstatus and note_default_pge are the same, the value for this question is that of note_default_page, otherwise its value lst_missionstatus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Survey123 keeps returning with an error that there is only one argument in my condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 15:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/compare-two-survey-questions/m-p/794135#M8986</guid>
      <dc:creator>RenatoSalvaleon</dc:creator>
      <dc:date>2017-10-11T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two survey questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/compare-two-survey-questions/m-p/794136#M8987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved the issue with this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((selected(${lst_missionstatus},${note_default_page})), ${note_default_page}, ${lst_missionstatus})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it did not do what I wanted to accomplish for my relevant field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up with this.&lt;/P&gt;&lt;P&gt;if((selected(${lst_missionstatus},'')), ${note_default_page}, ${lst_missionstatus})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge was note_default_page is loaded on form load and the other one is populated with a select, so on form load the question is always null. So I just reversed the logic and now its working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 19:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/compare-two-survey-questions/m-p/794136#M8987</guid>
      <dc:creator>RenatoSalvaleon</dc:creator>
      <dc:date>2017-10-11T19:55:24Z</dc:date>
    </item>
  </channel>
</rss>

