<?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: Assign a numerical value to a text answer in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820030#M15608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are good my friend! I had it saved as an excel file and not a CSV. Once I saved it as a CSV it worked like a charm. I will let you know if I get my survey to work how I want it to now that I have the pulldata function working!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2018 16:31:49 GMT</pubDate>
    <dc:creator>RobertMarros</dc:creator>
    <dc:date>2018-08-06T16:31:49Z</dc:date>
    <item>
      <title>Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820024#M15602</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 am wondering if there is a way to assign a numerical value to a text answer. Here is an example of what I am trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A survey is designed for inspectors to fill out. As they answer questions like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"What is the distance to the nearest fire extinguisher?"&lt;/P&gt;&lt;P&gt;1: 10 ft.&lt;/P&gt;&lt;P&gt;2: 50 ft.&lt;/P&gt;&lt;P&gt;3: 100 ft.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to assign a numerical value to those answers so 1 point for 10 ft., 5 points for 50 ft., and 10 points for 100 ft. At the end, I would like to be able to tally up the results of my survey with a total score for every answer to a question and be able to assign a risk value that the inspector can both see and submit in the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/group/4077"&gt;Survey123 for ArcGIS&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 20:30:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820024#M15602</guid>
      <dc:creator>RobertMarros</dc:creator>
      <dc:date>2018-08-02T20:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820025#M15603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can use numeric values for the names of a list. &amp;nbsp;For use in a &amp;nbsp;formula, you will need to convert from string/text (which is how it will be stored) to integers using the int() function in the formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 22:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820025#M15603</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-02T22:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820026#M15604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for responding. I should have clarified in my original post that I had already read through the threads for the &lt;A href="https://community.esri.com/groups/survey123/blog/2015/08/24/using-formulas-in-survey123"&gt;https://community.esri.com/groups/survey123/blog/2015/08/24/using-formulas-in-survey123&lt;/A&gt;&amp;nbsp;post, specifically the one from Thierry Gregorius which outlines the approach you described. My issue with this approach is that in the back-end I would like the question field to be populated with the actual text from the Name field and not a numeric value like 1, 2, 3, 4, 5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1: What is your favorite animal?&lt;/P&gt;&lt;P&gt;Q2: What is your favorite color?&lt;/P&gt;&lt;P&gt;Q3: What is your favorite shape?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/417840_pastedImage_56.png" /&gt;&amp;nbsp;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/417841_pastedImage_57.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to keep the name field as a text (on the left) and not have to use a numerical value (on the right) just to do the calculation at the end. Is there another approach I can do that would allow me to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820026#M15604</guid>
      <dc:creator>RobertMarros</dc:creator>
      <dc:date>2018-08-03T13:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820027#M15605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use a series of if statements or a pulldata function to translate the text to an appropriate numerical value in your formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 17:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820027#M15605</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-03T17:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820028#M15606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed your advice and have been attempting to use the pulldata function to achieve my desired result however I am having an issue where the risk value isn't populating in my survey under my note question. I created an external xls form (moved it to my media folder) called "Risk" where I have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/418169_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in my main xls form I have the following pushdata function:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/418170_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My choices tab has the following (matching the name column to the external name column):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/418171_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is there something I am missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:38:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820028#M15606</guid>
      <dc:creator>RobertMarros</dc:creator>
      <dc:date>2018-08-06T15:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820029#M15607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your external file an Excel file or CSV? &amp;nbsp;For pulldata() to function, it must be a CSV (text with comma separated values).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820029#M15607</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-06T16:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820030#M15608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are good my friend! I had it saved as an excel file and not a CSV. Once I saved it as a CSV it worked like a charm. I will let you know if I get my survey to work how I want it to now that I have the pulldata function working!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:31:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820030#M15608</guid>
      <dc:creator>RobertMarros</dc:creator>
      <dc:date>2018-08-06T16:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820031#M15609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question to help me take this home. In order to add up all of my values from the various questions into one total number, do all my rows where I do a pulldata calculation need to be set to integer? Right now when I calculate all of the rows they just put them together (i.e. 5+1 is 51 not 6).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 17:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820031#M15609</guid>
      <dc:creator>RobertMarros</dc:creator>
      <dc:date>2018-08-06T17:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820032#M15610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never mind, I figured it out. Thanks again!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 17:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/820032#M15610</guid>
      <dc:creator>RobertMarros</dc:creator>
      <dc:date>2018-08-06T17:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/1016332#M31922</link>
      <description>&lt;P&gt;What was the solution to this last piece?&amp;nbsp; That is where I am currently stuck.&amp;nbsp; I have 2+2+2 = 222 instead of 6.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 13:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/1016332#M31922</guid>
      <dc:creator>JacobMcGlincy</dc:creator>
      <dc:date>2021-01-13T13:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a numerical value to a text answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/1090834#M36631</link>
      <description>&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;your system may be assuming the '2's are text, and not integers. Try puting int(2)+int(2)+int(2). This will force the system to treat them as numbers and not as a text string.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 15:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/assign-a-numerical-value-to-a-text-answer/m-p/1090834#M36631</guid>
      <dc:creator>NicCrossett</dc:creator>
      <dc:date>2021-08-20T15:54:46Z</dc:date>
    </item>
  </channel>
</rss>

