<?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 Join all repeats into a multiline text box separated by new line in web app in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/join-all-repeats-into-a-multiline-text-box/m-p/1286269#M49093</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to accomplish separating my concatenated repeats on a new line in the Survey123 Web App.&amp;nbsp; I am able to accomplish this in Survey123 Connect using "\n" however not able to replicate it in Web App. I have tried "\n" and &amp;lt;br&amp;gt; both with no success.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoreyWilliamsESRIAccount_0-1683308126445.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69983iBA5F8367ABDFEB2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CoreyWilliamsESRIAccount_0-1683308126445.png" alt="CoreyWilliamsESRIAccount_0-1683308126445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoreyWilliamsESRIAccount_1-1683308307032.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69985iC845BF1A6DDFDDE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CoreyWilliamsESRIAccount_1-1683308307032.png" alt="CoreyWilliamsESRIAccount_1-1683308307032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 17:39:18 GMT</pubDate>
    <dc:creator>CoreyWilliamsESRIAccount</dc:creator>
    <dc:date>2023-05-05T17:39:18Z</dc:date>
    <item>
      <title>Join all repeats into a multiline text box separated by new line in web app</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-all-repeats-into-a-multiline-text-box/m-p/1286269#M49093</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to accomplish separating my concatenated repeats on a new line in the Survey123 Web App.&amp;nbsp; I am able to accomplish this in Survey123 Connect using "\n" however not able to replicate it in Web App. I have tried "\n" and &amp;lt;br&amp;gt; both with no success.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoreyWilliamsESRIAccount_0-1683308126445.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69983iBA5F8367ABDFEB2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CoreyWilliamsESRIAccount_0-1683308126445.png" alt="CoreyWilliamsESRIAccount_0-1683308126445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoreyWilliamsESRIAccount_1-1683308307032.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69985iC845BF1A6DDFDDE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CoreyWilliamsESRIAccount_1-1683308307032.png" alt="CoreyWilliamsESRIAccount_1-1683308307032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 17:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-all-repeats-into-a-multiline-text-box/m-p/1286269#M49093</guid>
      <dc:creator>CoreyWilliamsESRIAccount</dc:creator>
      <dc:date>2023-05-05T17:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Join all repeats into a multiline text box separated by new line in web app</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-all-repeats-into-a-multiline-text-box/m-p/1286337#M49099</link>
      <description>&lt;P&gt;Why does the text need to be formatted in the form that way? There are lots of ways that you can redisplay responses in other formats like map popups and dashboards.&lt;/P&gt;&lt;P&gt;If it needs to be in the form, try using a &lt;EM&gt;custom JS function&lt;/EM&gt; in your form, as this will allow you to reshape and combine strings with a lot more flexibility than the built in S123 functions.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 18:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-all-repeats-into-a-multiline-text-box/m-p/1286337#M49099</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-05-05T18:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Join all repeats into a multiline text box separated by new line in web app</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-all-repeats-into-a-multiline-text-box/m-p/1287467#M49146</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;Thanks for this recommendation.&amp;nbsp; I am not an expert with javascript by any means and was hoping you could help me tweak this code to produce the expected results.&amp;nbsp; Currently I'm seeing the fields referenced as undefined and the line break not working.&lt;BR /&gt;&lt;BR /&gt;Could it be this functionality is not available in the web app?&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/extending-survey123-smart-forms-with-custom-js/ba-p/898782" target="_self"&gt;Extending Survey123 with Javacript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Starting with ArcGIS Survey123 version 3.10, you can incorporate logic in your forms using custom JavaScript (JS) functions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// In your form field "bds_comm_concat", 
// use pulldata("@javascript","notes.js","getCommSummary",${bds_lead_communication})

function getCommSummary(rows) {

	var commSummary = "";
  
	for (var i = 0; i &amp;lt; rows.length; i++) {
	  commSummary +=
		rows[i].bds_comm_date_text +
		", " +
		rows[i].bds_comm_user +
		", " +
		rows[i].bds_comm_method +
		":&amp;lt;br&amp;gt;" +
		rows[i].bds_comm_summary +
		"&amp;lt;br&amp;gt;";
	}
  
	return commSummary;
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 21:08:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-all-repeats-into-a-multiline-text-box/m-p/1287467#M49146</guid>
      <dc:creator>CoreyWilliamsESRIAccount</dc:creator>
      <dc:date>2023-05-09T21:08:51Z</dc:date>
    </item>
  </channel>
</rss>

