<?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_one - no integer values in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818768#M15256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expected behaviour, as a select one question is actually a text field due to it being a choice list, even though you may use numbers as the choices, if you look in the feature layer and the esri field type, you will see it is always a string field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore you can not apply mathematical equations to a string field the same as you can for integer and decimal. The ebst way around this is to use a hidden question type (so the user doesn't see it) and put the value on the select one into this hidden question by a simple calculation that references the select one, and then use the hidden question in your further calculations in other questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an enhancement in our backlog to honour the bind:type field for select one questions, as currently that does not work, which would allow setting it as "int" which would mean it is treated as an integer even though the values are stored as text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Jun 2019 22:53:45 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-06-16T22:53:45Z</dc:date>
    <item>
      <title>select_one - no integer values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818767#M15255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a form with two select_one fields where the value is an integer value with a text label. Even with saving the result from the select_one field as an integer value to a calculate field it will not be recognized as an integer value. When I try to calculate the average of the choices, it gives me just some weird numbers. It works though if I use an integer question to save the value from the select_one question as integer. But this looks awful (and stupid) in my form, I would rather hide this step if somehow possible.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2019 21:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818767#M15255</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2019-06-16T21:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: select_one - no integer values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818768#M15256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expected behaviour, as a select one question is actually a text field due to it being a choice list, even though you may use numbers as the choices, if you look in the feature layer and the esri field type, you will see it is always a string field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore you can not apply mathematical equations to a string field the same as you can for integer and decimal. The ebst way around this is to use a hidden question type (so the user doesn't see it) and put the value on the select one into this hidden question by a simple calculation that references the select one, and then use the hidden question in your further calculations in other questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an enhancement in our backlog to honour the bind:type field for select one questions, as currently that does not work, which would allow setting it as "int" which would mean it is treated as an integer even though the values are stored as text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2019 22:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818768#M15256</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-16T22:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: select_one - no integer values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818769#M15257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick response. I was&amp;nbsp;guessing already that the integer values are not supported at the moment for select_one fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you maybe point me to an explanation of the difference between the&amp;nbsp;bind::type and the&amp;nbsp;bind::esri:fieldType columns? When I used the&amp;nbsp;bind::esri:fieldType to make the hidden field an integer value it was ignored and still stored as a string. &lt;STRONG&gt;Only when I selected int in the&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;bind::type column&lt;/STRONG&gt;&amp;nbsp;it was actually overwriting the default string setting.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know anything about when we can expect the next full release? (not Beta) &lt;A href="https://community.esri.com/migrated-users/3966"&gt;Ismael Chivite&lt;/A&gt;‌? &lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 07:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818769#M15257</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2019-06-17T07:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: select_one - no integer values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818770#M15258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The bind::esri:fieldType column is a custom xlsform column that Esri uses to set the field type in the feature layer when the survey is published and feature layer created, similar the&amp;nbsp;&lt;SPAN&gt;bind::esri:fieldAlias and&amp;nbsp;bind::esri:fieldLength, these are also used to manage the feature layer field options.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The bind::type column however is a xlsform standard column, and is used to manage the field type within the app, part of the xlsform specification. This is the correct column to use if you want calculations in the app to honour the field as an integer at the time of running the form.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;If you then want the values to be stored as integer in a field that is not normally not an integer, you can set the&amp;nbsp;&lt;SPAN&gt;bind::esri:fieldType when publishing so that the corresponding field is created as an integer too.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;As for the 3.5 release (next full release), it will be available before the end of June, not far away now!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Phil.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 10:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818770#M15258</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-17T10:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: select_one - no integer values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818771#M15259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Phil!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 10:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-one-no-integer-values/m-p/818771#M15259</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2019-06-17T10:14:30Z</dc:date>
    </item>
  </channel>
</rss>

