<?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: Counting &amp;quot;unique&amp;quot; selections across repeats in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850892#M23393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to understand&amp;nbsp;how to make this work, and am a bit confused&amp;nbsp;about&amp;nbsp;some of your explanation above. I'm mostly confused about which fields in your form are ${SpeciesList}, ${AllPlansCheck}, possibly a third text/calculate field(?), and what's going on in each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- A&amp;nbsp;&lt;EM&gt;select_one species_list&lt;/EM&gt;&amp;nbsp;question in a repeat with the database field name 'plant_species'.&lt;/P&gt;&lt;P&gt;- Outside&amp;nbsp;and below the repeat I have a &lt;EM&gt;unique_species_list&lt;/EM&gt; text question, which in the calculation field I'm using &lt;EM&gt;join(', ', ${plant_species})&lt;/EM&gt; to add all the selected plants from the repeats to.&lt;/P&gt;&lt;P&gt;- On the same&amp;nbsp;&lt;EM&gt;unique_species_list&lt;/EM&gt;&amp;nbsp;text question,&amp;nbsp;I've added to the the constraint field:&amp;nbsp;&lt;EM&gt;not(contains(substr(${unique_species_list}, 0, string-length(${unique_species_list})), ${plant_species}))&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is joining everything together, where I just want&amp;nbsp;a list of distinct values. Also, choice list&amp;nbsp;has&amp;nbsp;several thousand species&amp;nbsp;that are updated now and then, so I don't have any specific string-length codes. I've left this off the constraint, as I don't think it's required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, and would&amp;nbsp;you be able to share this part of your form? It would be much easier for me I could see the survey sheet, but no worries if you can't share it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2020 04:49:19 GMT</pubDate>
    <dc:creator>RoryMcPherson</dc:creator>
    <dc:date>2020-03-02T04:49:19Z</dc:date>
    <item>
      <title>Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850887#M23388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, here's the deal. I am trying to create a field that will count the total number of plant species observed in a plant survey. The survey has 100 subplots (repeating form 1-100). Each subplot repeat and has a nested repeat&amp;nbsp;that asks observers to choose all the plant species found in that subplot.&amp;nbsp;I can use&amp;nbsp;&lt;STRONG&gt;count(${plant_sp}) &lt;/STRONG&gt;to get the total number of plant species selected throughout the survey, but I want to count only the number of &lt;STRONG&gt;unique&lt;/STRONG&gt; species selected in the survey. This is to find the species richness of the site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if there is&amp;nbsp;a daisy, coneflower, and hawkweed in every subplot,&amp;nbsp;I need the count to be 3 and not 300. There are literally hundreds of possible choices for each subplot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to pull the number of unique codes from a concatenated list of all the species codes #from a &lt;BR /&gt;&lt;STRONG&gt;join(' ,'&amp;nbsp;${plant_sp}) &lt;/STRONG&gt;perhaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 23:33:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850887#M23388</guid>
      <dc:creator>KarenTuerk2</dc:creator>
      <dc:date>2019-04-10T23:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850888#M23389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Not clear if you want one for a subplot or one per&amp;nbsp;overall survey? You may have to resort to Python or other programming tool after the data is stored if you would like to get one per sub-plot.&amp;nbsp; If per survey, you can&amp;nbsp; make a variable for each flower type and compute a variable if it was selected at least once its count would be greater than zero (set the default value to 0).&amp;nbsp; See below a use case for summing repeats from &lt;A href="https://docs.opendatakit.org/form-repeats/#referencing-answers-in-repeats"&gt;https://docs.opendatakit.org/form-repeats/#referencing-answers-in-repeats&lt;/A&gt; .&amp;nbsp; Also you can use the selected function for each item to find if present in the list of selected item.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some functions such as indexed-repeats are unfortunately not implemented in Survey123.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/441799_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 01:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850888#M23389</guid>
      <dc:creator>MaazaMekuria</dc:creator>
      <dc:date>2019-04-11T01:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850889#M23390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Maaza,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find unique selections &lt;STRONG&gt;across the survey&lt;/STRONG&gt;. The number of selections (plants) will always match the number of species within the subplot. But the same species map be chosen more than once across the survey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, setting a variable for each species is not practical as there are thousands of plant species choices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 14:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850889#M23390</guid>
      <dc:creator>KarenTuerk2</dc:creator>
      <dc:date>2019-04-11T14:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850890#M23391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is something Survey123 may be able to support in the future - in the Early Adopter Community there is a feature 'custom JavaScript functions' that has been enhanced to be able to process repeat information. &amp;nbsp;The specific function would be dependent on the form's layout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 21:52:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850890#M23391</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-04-23T21:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850891#M23392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are on the right track.&amp;nbsp; Here is how I did it.&amp;nbsp; Not perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a large txt (or note) field outside the repeat.&amp;nbsp; i did text so users can copy and paste it.&lt;/P&gt;&lt;P&gt;Add a calc joining the fields from the repeat join(", ", ${SpeciesList})&lt;/P&gt;&lt;P&gt;Set a constraint on this join field (not the field) - the trick here is to remove the last entry since it is the one you are trying to add currently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So like this&amp;nbsp;not(contains(substr(${AllPlantsCheck}, 0, string-length(${AllPlantsCheck}) - 3), ${SpeciesList}))&amp;nbsp;&lt;/P&gt;&lt;P&gt;--If you do not do this it immediately adds to the list then complains it is already there.&lt;/P&gt;&lt;P&gt;--(note my plant codes are 4 chars. so if i remove the last 3 chars it will not find what I just added)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be funky if you go backwards and then change something but it still seems to work ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even built on exceptions to the rule. If it contains a XXXXX generic code then the repeat is allowed.&lt;/P&gt;&lt;P&gt;Like&amp;nbsp;contains(${SpeciesList}, "XXXX") or not(contains(substr(${AllPlantsCheck}, 0, string-length(${AllPlantsCheck}) - 3), ${SpeciesList}))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it sounds like you may want to compare across multiple repeats?&amp;nbsp; If so make a join() field for each repeat then make a master field that joins all of the joins together.&amp;nbsp; Then check against that.&amp;nbsp; (Confused yet &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&amp;nbsp; Works slick for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 22:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850891#M23392</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-04-23T22:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850892#M23393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to understand&amp;nbsp;how to make this work, and am a bit confused&amp;nbsp;about&amp;nbsp;some of your explanation above. I'm mostly confused about which fields in your form are ${SpeciesList}, ${AllPlansCheck}, possibly a third text/calculate field(?), and what's going on in each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- A&amp;nbsp;&lt;EM&gt;select_one species_list&lt;/EM&gt;&amp;nbsp;question in a repeat with the database field name 'plant_species'.&lt;/P&gt;&lt;P&gt;- Outside&amp;nbsp;and below the repeat I have a &lt;EM&gt;unique_species_list&lt;/EM&gt; text question, which in the calculation field I'm using &lt;EM&gt;join(', ', ${plant_species})&lt;/EM&gt; to add all the selected plants from the repeats to.&lt;/P&gt;&lt;P&gt;- On the same&amp;nbsp;&lt;EM&gt;unique_species_list&lt;/EM&gt;&amp;nbsp;text question,&amp;nbsp;I've added to the the constraint field:&amp;nbsp;&lt;EM&gt;not(contains(substr(${unique_species_list}, 0, string-length(${unique_species_list})), ${plant_species}))&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is joining everything together, where I just want&amp;nbsp;a list of distinct values. Also, choice list&amp;nbsp;has&amp;nbsp;several thousand species&amp;nbsp;that are updated now and then, so I don't have any specific string-length codes. I've left this off the constraint, as I don't think it's required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, and would&amp;nbsp;you be able to share this part of your form? It would be much easier for me I could see the survey sheet, but no worries if you can't share it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 04:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850892#M23393</guid>
      <dc:creator>RoryMcPherson</dc:creator>
      <dc:date>2020-03-02T04:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850893#M23394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must take at least something off of the string to check otherwise it will find itself.&amp;nbsp; The add is instantaneous so the check would always fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the lines.&amp;nbsp; Hope it helps.&amp;nbsp; You could remove the XXX check if you do not do Unknown codes.&amp;nbsp; So just this -&amp;gt;&amp;nbsp; not(contains(substr(${AllPlantsCheck}, 0, string-length(${AllPlantsCheck}) - 3), ${SpeciesList}))&lt;/P&gt;&lt;TABLE width="4842"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59; background: #9BBB59;" width="136"&gt;type&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="136"&gt;name&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="227"&gt;label&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;hint&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="620"&gt;constraint&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;constraint_message&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;required&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;required_message&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;appearance&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;default&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;readonly&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="303"&gt;relevant&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;calculation&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;choice_filter&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;repeat_count&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;label::language1&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;hint::language1&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;media::audio&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;media::image&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;body::accuracyThreshold&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;bind::esri:fieldType&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;bind::esri:fieldLength&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;bind::esri:fieldAlias&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;body::esri:inputMask&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="171"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE width="4500"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59;" width="136"&gt;text&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="136"&gt;AllPlantsCheck&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="227"&gt;All Species added so far&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="620"&gt;${SpeciesList}='' or contains(${SpeciesList}, "XXXX") or contains(${SpeciesList}, "UNK") or not(contains(substr(${AllPlantsCheck}, 0, string-length(${AllPlantsCheck}) - 3), ${SpeciesList}))&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;Species has already been added to the list&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;yes&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="303"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;join(", ", ${SpeciesList})&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;null&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;5000&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="171"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850893#M23394</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-03-02T14:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850894#M23395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick response Doug. I gave this a go, but then found this post (&lt;A href="https://community.esri.com/thread/235358"&gt;Can I prevent a value from being submitted multiple times in a repeat question?&lt;/A&gt;&amp;nbsp;)&amp;nbsp;and was able to use&amp;nbsp;a JavaScript function to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate the help though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 03:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850894#M23395</guid>
      <dc:creator>RoryMcPherson</dc:creator>
      <dc:date>2020-03-03T03:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850895#M23396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it work offline?&amp;nbsp; &amp;nbsp; I came up with my way a year ago before any javascript was available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 14:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850895#M23396</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-03-03T14:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850896#M23397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great question! I had to check but seems to work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 00:53:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850896#M23397</guid>
      <dc:creator>RoryMcPherson</dc:creator>
      <dc:date>2020-03-04T00:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850897#M23398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you got it to work as a constraint?&amp;nbsp; I can get a message to show like the example but when I try to use it as a constraint no go.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add to the note relevant it shows the note but when I add it to the constraint it still lets me keep going.&lt;/P&gt;&lt;P&gt;pulldata('@javascript', 'repeats.js', 'distinctCheck', ${SpeciesFound})&amp;nbsp; tried with and without the not()&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/484012_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add it to a join list constraint then it will not let me add anything.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/484011_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it so that they cannot go on in the repeat with a dupe.&amp;nbsp; That is what my way did.&amp;nbsp; This gives a warning but still lets them do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:24:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850897#M23398</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-03-04T16:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850898#M23399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way I have it set up is&amp;nbsp;using the distinct pulldata() function for species in a calculation for each associated plant type, which there aren't too many categories for. These are essentially just Boolean returns. I've then got a hidden species_check question using an if() calculation assessing if all the distinct checks return true. If any return false, as in a duplicate species has been selected for that plant type, the species_check returns a false; likewise, if all checks return true the check passes and returns true. I'm using this true/false return as a constraint on my select_one species in the repeat. This works for me as it&amp;nbsp;triggers the constraint if they select the same species and then try to pass the repeat record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sense? Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 01:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850898#M23399</guid>
      <dc:creator>RoryMcPherson</dc:creator>
      <dc:date>2020-03-11T01:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850899#M23400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any chance you can share the final spreadsheet showing the code you used to link all this together?&amp;nbsp; I am working on a very similar project and would like to either limit a species from being entered twice or show a warning message if it is attempted.&amp;nbsp; I get the basic portion of the Java code to work, it just shows the message all the time and I am not having any success in only showing the message when it is necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 15:51:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850899#M23400</guid>
      <dc:creator>JosephBusalacchi</dc:creator>
      <dc:date>2020-06-01T15:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850900#M23401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never got javascript to work how I want but my other way posted here&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/message/932144-re-can-i-prevent-a-value-from-being-submitted-multiple-times-in-a-repeat-question?commentID=932144&amp;amp;et=watches.email.thread#comment-932144"&gt;https://community.esri.com/message/932144-re-can-i-prevent-a-value-from-being-submitted-multiple-times-in-a-repeat-question?commentID=932144&amp;amp;et=watches.email.thread#comment-932144&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Does work for species.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 17:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/850900#M23401</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-06-01T17:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting "unique" selections across repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/1563395#M60300</link>
      <description>&lt;P&gt;Hi there&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2471"&gt;@RoryMcPherson&lt;/a&gt;&amp;nbsp;, I realise this is an old thread but what youve described sounds like what Im trying to do.&amp;nbsp;&lt;BR /&gt;I am allowing duplicates within my repeat (contains reserve name, area, ID plus a stack of field assessment data).&amp;nbsp;&lt;BR /&gt;I want to add a flag or check field against the first instance a reserve is listed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second step in the main table would then be to Concat all the reserve names and Sum the Area of only the first instance records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to post code of your desciption if you still had it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mw&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 12:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-quot-unique-quot-selections-across/m-p/1563395#M60300</guid>
      <dc:creator>MarkWILSON_LLS</dc:creator>
      <dc:date>2024-11-29T12:05:10Z</dc:date>
    </item>
  </channel>
</rss>

