<?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: Select_Multiple - return what wasn't selected in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869069#M27683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I was a little sloppy on hte original function - that will be revised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Red/Green/Blue example, the code would be:&lt;/P&gt;&lt;P&gt;concat(if(selected(${color}, 'red'),'','Red'),if(selected(${color}, 'green'),' ','Green '),if(selected(${color}, 'blue'),'','Blue'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say, this generates a list (as there may be multiple values not selected). &amp;nbsp;The if() statement checks for each value and places no string (or a space to preserve formatting for a middle value like green) if the value is selected and the text if the value is not selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2018 19:35:51 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2018-08-15T19:35:51Z</dc:date>
    <item>
      <title>Select_Multiple - return what wasn't selected</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869066#M27680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to return what wasn't selected from a select multiple question.&amp;nbsp; I know i can do it by adding a hidden field and returning the False or No value to that field, but i have a lot of fields.&amp;nbsp; Is there a way were i can do if count &amp;lt; #, return the choice that wasn't selected?&amp;nbsp; I would think that it's possible, but not sure of the field/syntax to try it.&lt;/P&gt;&lt;P&gt;Anyone else attempt something similar?&lt;/P&gt;&lt;P&gt;TIA!&lt;BR /&gt;Sue&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869066#M27680</guid>
      <dc:creator>SueJohnston</dc:creator>
      <dc:date>2018-08-15T18:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select_Multiple - return what wasn't selected</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869067#M27681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say, you could do this with a concat() function joining separate if statements checking for the presence of a choice:&lt;/P&gt;&lt;P&gt;concat(if(selected(${q}, 'choiceA'), '','choiceA'), if(selected(${q},'choiceB'), '','choiceB'))&lt;/P&gt;&lt;P&gt;and so forth for each choice in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed: revised function to be valid XLSForm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 19:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869067#M27681</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-15T19:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select_Multiple - return what wasn't selected</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869068#M27682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry James, I'm not following exactly.&amp;nbsp; Wouldn't this give me a list?&lt;/P&gt;&lt;P&gt;If i have a question that says Red, Green, Blue.&amp;nbsp; Red and Green are checked, how do i get that the Blue wasn't?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 19:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869068#M27682</guid>
      <dc:creator>SueJohnston</dc:creator>
      <dc:date>2018-08-15T19:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select_Multiple - return what wasn't selected</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869069#M27683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I was a little sloppy on hte original function - that will be revised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Red/Green/Blue example, the code would be:&lt;/P&gt;&lt;P&gt;concat(if(selected(${color}, 'red'),'','Red'),if(selected(${color}, 'green'),' ','Green '),if(selected(${color}, 'blue'),'','Blue'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say, this generates a list (as there may be multiple values not selected). &amp;nbsp;The if() statement checks for each value and places no string (or a space to preserve formatting for a middle value like green) if the value is selected and the text if the value is not selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 19:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869069#M27683</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-15T19:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select_Multiple - return what wasn't selected</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869070#M27684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I get it now.&amp;nbsp; And it works like a charm!&amp;nbsp; Thanks so much James for you super quick and super helpful response! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 19:49:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-return-what-wasn-t-selected/m-p/869070#M27684</guid>
      <dc:creator>SueJohnston</dc:creator>
      <dc:date>2018-08-15T19:49:37Z</dc:date>
    </item>
  </channel>
</rss>

