<?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 Auto-populate a field if two select_multiple fields equal each other in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-populate-a-field-if-two-select-multiple/m-p/1064554#M35040</link>
    <description>&lt;P&gt;I have two select_multiple fields, one to capture work that needs to be performed, and one to select work that has been performed.&amp;nbsp; I also have a yes/no, select_one text field to indicate when all work has been completed.&lt;/P&gt;&lt;P&gt;Is it possible to have some sort of calculation that would auto populate the yes/no text field if all the same selections were made in the work completed field as were made in the work needed field?&amp;nbsp; Something similar to: if (select_multiple field 2 = select_multiple field 1, then yes/no text field = "Yes","No")&lt;/P&gt;&lt;P&gt;It seems to work if only a single, identical selection is made in each field; however, if multiple selections are made in the "work required" field, even if those same two selections are made in the "work completed" field, the calculation doesn't work.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 10:58:45 GMT</pubDate>
    <dc:creator>JasonCyphers</dc:creator>
    <dc:date>2021-06-03T10:58:45Z</dc:date>
    <item>
      <title>Auto-populate a field if two select_multiple fields equal each other</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-populate-a-field-if-two-select-multiple/m-p/1064554#M35040</link>
      <description>&lt;P&gt;I have two select_multiple fields, one to capture work that needs to be performed, and one to select work that has been performed.&amp;nbsp; I also have a yes/no, select_one text field to indicate when all work has been completed.&lt;/P&gt;&lt;P&gt;Is it possible to have some sort of calculation that would auto populate the yes/no text field if all the same selections were made in the work completed field as were made in the work needed field?&amp;nbsp; Something similar to: if (select_multiple field 2 = select_multiple field 1, then yes/no text field = "Yes","No")&lt;/P&gt;&lt;P&gt;It seems to work if only a single, identical selection is made in each field; however, if multiple selections are made in the "work required" field, even if those same two selections are made in the "work completed" field, the calculation doesn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 10:58:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/auto-populate-a-field-if-two-select-multiple/m-p/1064554#M35040</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2021-06-03T10:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-populate a field if two select_multiple fields equal each other</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-populate-a-field-if-two-select-multiple/m-p/1072409#M35519</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9918"&gt;@JasonCyphers&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;One option would be to use the count-selected() function to compare the two select_multiple questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;if(count-selected(${work_to_be_done})=count-selected(${work_done}),'yes', '')&lt;/P&gt;&lt;P&gt;This assumes if both questions have the same number of options selected all the work has been completed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 00:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/auto-populate-a-field-if-two-select-multiple/m-p/1072409#M35519</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2021-06-25T00:10:17Z</dc:date>
    </item>
  </channel>
</rss>

