<?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 Survey123 Javascript Functions in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-javascript-functions/m-p/1269628#M48063</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using Survey123 Connect and specifically using a JS function to generate outputs based on plugging user inputs into a formula. That all works fine but the issue I've come across is with how the results are returned to the field app.&lt;/P&gt;&lt;P&gt;This works as expected:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return '&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;' + year1 + '&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;' + year2 + '&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;' + year3 + '&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is output as a bulleted list.&lt;/P&gt;&lt;P&gt;This does not work as expected:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return '&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;' + year1 + '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;' + year2 + '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;' + year3 + '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Instead, it is returned as single row.&lt;/P&gt;&lt;P&gt;I would prefer to return the results as a table but am not sure why the list works but not table.&lt;/P&gt;&lt;P&gt;Any ideas or suggestions will be appreciated. Hopefully I'm missing something obvious &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 20:26:56 GMT</pubDate>
    <dc:creator>KyleBurford</dc:creator>
    <dc:date>2023-03-20T20:26:56Z</dc:date>
    <item>
      <title>Survey123 Javascript Functions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-javascript-functions/m-p/1269628#M48063</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using Survey123 Connect and specifically using a JS function to generate outputs based on plugging user inputs into a formula. That all works fine but the issue I've come across is with how the results are returned to the field app.&lt;/P&gt;&lt;P&gt;This works as expected:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return '&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;' + year1 + '&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;' + year2 + '&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;' + year3 + '&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is output as a bulleted list.&lt;/P&gt;&lt;P&gt;This does not work as expected:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return '&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;' + year1 + '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;' + year2 + '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;' + year3 + '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Instead, it is returned as single row.&lt;/P&gt;&lt;P&gt;I would prefer to return the results as a table but am not sure why the list works but not table.&lt;/P&gt;&lt;P&gt;Any ideas or suggestions will be appreciated. Hopefully I'm missing something obvious &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 20:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-javascript-functions/m-p/1269628#M48063</guid>
      <dc:creator>KyleBurford</dc:creator>
      <dc:date>2023-03-20T20:26:56Z</dc:date>
    </item>
  </channel>
</rss>

