<?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: New Lines Not Honored in Pop-up in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1056951#M1923</link>
    <description>&lt;P&gt;Unfortunately I have very little control over the data coming into attributes.&lt;/P&gt;&lt;P&gt;We settled on removing the popups and relying on a text window.&amp;nbsp; At least it's consistent.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 00:16:40 GMT</pubDate>
    <dc:creator>PeterKT</dc:creator>
    <dc:date>2021-05-12T00:16:40Z</dc:date>
    <item>
      <title>New Lines Not Honored in Pop-up</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1055033#M1886</link>
      <description>&lt;P&gt;I've got a large text field which has new line characters (CRLF).&lt;/P&gt;&lt;P&gt;In ExB they're being represented correctly in the text widget, but not in the popup in the map widget.&lt;/P&gt;&lt;P&gt;Classic Map Viewer represents correctly, but new Map Viewer doesn't.&lt;/P&gt;&lt;P&gt;It appears ExB is honoring the new Map Viewer, but not Classic.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GIS_Unit_Kedron_1-1620271915276.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12669i07CB1F782063EF92/image-size/large?v=v2&amp;amp;px=999" role="button" title="GIS_Unit_Kedron_1-1620271915276.png" alt="GIS_Unit_Kedron_1-1620271915276.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="GIS_Unit_Kedron_2-1620272008100.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12670i68F99DF2432EF6FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GIS_Unit_Kedron_2-1620272008100.png" alt="GIS_Unit_Kedron_2-1620272008100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 03:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1055033#M1886</guid>
      <dc:creator>PeterKT</dc:creator>
      <dc:date>2021-05-06T03:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: New Lines Not Honored in Pop-up</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1055154#M1890</link>
      <description>&lt;P&gt;It looks like carriage returns are inconsistent. Here's an expression:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;'Line followed by "\\n"\n' +
'Line followed by "TextFormatting.NewLine"' +
TextFormatting.NewLine +
'Line followed by "\\r"\r' +
'Final Line'&lt;/LI-CODE&gt;&lt;P&gt;In the expression builder, it gives me this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1620302647479.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12719i7D6D9AA7B6B912CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1620302647479.png" alt="jcarlson_0-1620302647479.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which is what I'd expect. But in the popup:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1620302770028.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12720i8D1DCD720CF078E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1620302770028.png" alt="jcarlson_1-1620302770028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would it be a simple matter to just replace the carriage returns with newlines?&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1055154#M1890</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-05-06T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: New Lines Not Honored in Pop-up</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1056951#M1923</link>
      <description>&lt;P&gt;Unfortunately I have very little control over the data coming into attributes.&lt;/P&gt;&lt;P&gt;We settled on removing the popups and relying on a text window.&amp;nbsp; At least it's consistent.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 00:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1056951#M1923</guid>
      <dc:creator>PeterKT</dc:creator>
      <dc:date>2021-05-12T00:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: New Lines Not Honored in Pop-up</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1057074#M1926</link>
      <description>&lt;P&gt;What about using Arcade's &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#replace" target="_self"&gt;Replace&lt;/A&gt; function? I know you already went with a different solution, but may be worth looking into.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;var out_str = ' 1 \r 2 \r 3'

var replaced = Replace(out_str, '\r', '\n')

return 'Original:\n' + out_str + '\nReplaced:\n' + replaced&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1620824478262.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/13133i56A2349CA00DC199/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1620824478262.png" alt="jcarlson_0-1620824478262.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 13:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/new-lines-not-honored-in-pop-up/m-p/1057074#M1926</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-05-12T13:01:30Z</dc:date>
    </item>
  </channel>
</rss>

