<?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: Adding integers for a select One from list type question giving error in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307292#M50575</link>
    <description>&lt;P&gt;From what I can see, it looks like issues will occur if any of the questions aren't completed, but as long as all six questions are completed, the value comes out okay.&amp;nbsp; One option would be to change your calculation to this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;number(${stonefly1})+number(${mayfly1})+number(${caddisfly1})+number(${snail1})+number(${leech1})+number(${waterlouse1})&lt;/LI-CODE&gt;&lt;P&gt;This will result in the calculation failing (and showing nothing) until all six questions are completed, since the number() function will fail on missing values.&lt;/P&gt;&lt;P&gt;If these questions are all mandatory that should work, if they're optional then I think you'll need to include some if() functions.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 14:57:33 GMT</pubDate>
    <dc:creator>MobiusSnake</dc:creator>
    <dc:date>2023-07-11T14:57:33Z</dc:date>
    <item>
      <title>Adding integers for a select One from list type question giving error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307202#M50563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 6 select from one list type question where the possible answer is +1 or -1. I then want to add the answers from these. But rather than adding the integers in a calculation it just adds a 1 into the sum box. e.g. -1111.&lt;/P&gt;&lt;P&gt;If I try setting the bindType field to Int then it says Error converting XLS form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307202#M50563</guid>
      <dc:creator>RachelS</dc:creator>
      <dc:date>2023-07-11T11:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding integers for a select One from list type question giving error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307206#M50565</link>
      <description>&lt;P&gt;Your calculate line is missing a few dollar signs.&amp;nbsp; You've got them for the first couple variables but they're missing after that.&amp;nbsp; I just tried bringing your XLSX into S123 Connect, set the binding on that last question to Integer and inserted the dollar signs and it looks all good.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 12:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307206#M50565</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2023-07-11T12:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding integers for a select One from list type question giving error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307223#M50566</link>
      <description>&lt;P&gt;Ah thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115587"&gt;@MobiusSnake&lt;/a&gt;&amp;nbsp;, I'd updated the dollar signs but didn't update the xls sheet.&lt;/P&gt;&lt;P&gt;I've attached the xls with the updates you mentioned but the calculation still doesn't work for me.&lt;/P&gt;&lt;P&gt;I'm on version 3.18.123.&lt;/P&gt;&lt;P&gt;Here's what I get below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RachelScott_0-1689079158337.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75156iEE9075BA21B4224D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RachelScott_0-1689079158337.png" alt="RachelScott_0-1689079158337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 12:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307223#M50566</guid>
      <dc:creator>RachelS</dc:creator>
      <dc:date>2023-07-11T12:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding integers for a select One from list type question giving error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307271#M50569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7812"&gt;@RachelS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed the missing dollars and I added myself.&lt;/P&gt;&lt;P&gt;the calculation works for me, I just added the dollars.&lt;/P&gt;&lt;P&gt;( I have forgotten to upgrade&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; and I am using connect 3.16.110)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanGIS_0-1689085197266.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75173iD85C2554C52F51E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanGIS_0-1689085197266.png" alt="PanGIS_0-1689085197266.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 14:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307271#M50569</guid>
      <dc:creator>PanGIS</dc:creator>
      <dc:date>2023-07-11T14:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding integers for a select One from list type question giving error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307292#M50575</link>
      <description>&lt;P&gt;From what I can see, it looks like issues will occur if any of the questions aren't completed, but as long as all six questions are completed, the value comes out okay.&amp;nbsp; One option would be to change your calculation to this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;number(${stonefly1})+number(${mayfly1})+number(${caddisfly1})+number(${snail1})+number(${leech1})+number(${waterlouse1})&lt;/LI-CODE&gt;&lt;P&gt;This will result in the calculation failing (and showing nothing) until all six questions are completed, since the number() function will fail on missing values.&lt;/P&gt;&lt;P&gt;If these questions are all mandatory that should work, if they're optional then I think you'll need to include some if() functions.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 14:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1307292#M50575</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2023-07-11T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding integers for a select One from list type question giving error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1308532#M50657</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115587"&gt;@MobiusSnake&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for that, I'm just going to force the user to complete all the questions.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 08:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/adding-integers-for-a-select-one-from-list-type/m-p/1308532#M50657</guid>
      <dc:creator>RachelS</dc:creator>
      <dc:date>2023-07-17T08:37:00Z</dc:date>
    </item>
  </channel>
</rss>

