<?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: Arcade Expression to break up field by identifer for pop-up in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285283#M68727</link>
    <description>&lt;P&gt;The syntax for the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#split" target="_self"&gt;Split&lt;/A&gt; function is Split(inputText, separatorText, limit?, removeEmpty?). Your code should be&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var theArray = Split($feature.contact_info, ',');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 17:02:00 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2023-05-03T17:02:00Z</dc:date>
    <item>
      <title>Arcade Expression to break up field by identifer for pop-up</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285271#M68725</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a field (contactinfo) in a dataset that has a large amount of data in it and I am hoping to Split it via an arcade expression in a pop up. I thought the best way to split them in the expression would be by the comma.&lt;/P&gt;&lt;P&gt;The data in the field is shown below:&lt;/P&gt;&lt;P&gt;Owner ID: 0, CLIENT_TYPE_CODE: C, NAME1: JAMES HAMMERS INC , NAME2: , STREET1: 5783 TURNSTONE DR, STREET2: , CITY: LANGSVILLE, PROV_STATE_CODE: BC, COUNTRY_CODE: CAN, POSTAL_ZIP: V0N3A7, PHONE1: , PHONE2: , FAX: , CLIENT_NET_ADDR: , CONTACT_NAME: , CONTACT_PHONE1: , CONTACT_PHONE2: , CONTACT_FAX: , CONTACT_NET_ADDR:&lt;/P&gt;&lt;P&gt;I've tried something like this Split($feature.contact_info) if ,= true, however I think I'm getting a&amp;nbsp; syntax error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to arcade, feel like this is probably quite simple and I'm just missing it.&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 16:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285271#M68725</guid>
      <dc:creator>KevinDurkee</dc:creator>
      <dc:date>2023-05-03T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to break up field by identifer for pop-up</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285283#M68727</link>
      <description>&lt;P&gt;The syntax for the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#split" target="_self"&gt;Split&lt;/A&gt; function is Split(inputText, separatorText, limit?, removeEmpty?). Your code should be&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var theArray = Split($feature.contact_info, ',');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285283#M68727</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-03T17:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to break up field by identifer for pop-up</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285298#M68732</link>
      <description>&lt;P&gt;The use can use that in an expression like this to show only the values that aren't blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var data = 'Owner ID: 0, CLIENT_TYPE_CODE: C, NAME1: JAMES HAMMERS INC , NAME2: , STREET1: 5783 TURNSTONE DR, STREET2: , CITY: LANGSVILLE, PROV_STATE_CODE: BC, COUNTRY_CODE: CAN, POSTAL_ZIP: V0N3A7, PHONE1: , PHONE2: , FAX: , CLIENT_NET_ADDR: , CONTACT_NAME: , CONTACT_PHONE1: , CONTACT_PHONE2: , CONTACT_FAX: , CONTACT_NET_ADDR:';

var theArray = Split(data,',');
var output = '';
for (var index in theArray) {
  var theInfo = Split(theArray[index],':');
  if (!IsEmpty(Trim(theInfo[1]))) output += `${Trim(theInfo[0])}: ${theInfo[1]}${TextFormatting.NewLine}`;
}
return output;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69774i862D47882712C09E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="output.png" alt="output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285298#M68732</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-03T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to break up field by identifer for pop-up</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285305#M68733</link>
      <description>&lt;P&gt;Hi Ken, appreciate the quick response. I tried the code and just received an empty box. Do I need to put a sort by for each identifier so that it knows for example OWNER ID: 0 is split into a sperate faux field?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinDurkee_0-1683134385366.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69773i52CA795EC6DAE998/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinDurkee_0-1683134385366.png" alt="KevinDurkee_0-1683134385366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or do I need a separate expression for each line I'd like to see, as seen below?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinDurkee_1-1683134894139.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69775i3A397D48403AE0A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinDurkee_1-1683134894139.png" alt="KevinDurkee_1-1683134894139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285305#M68733</guid>
      <dc:creator>KevinDurkee</dc:creator>
      <dc:date>2023-05-03T17:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to break up field by identifer for pop-up</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285324#M68735</link>
      <description>&lt;P&gt;You can remove the Field element, then add in a Text element. Inside the Text element editor, click the Field dropdown and add your Expression. The Configure Popups should look something like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="popup0.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69776i3599C77BFBCAB5BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="popup0.png" alt="popup0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285324#M68735</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-03T17:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to break up field by identifer for pop-up</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285355#M68736</link>
      <description>&lt;P&gt;Really appreciate your help, yes this works perfectly. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 18:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-break-up-field-by-identifer/m-p/1285355#M68736</guid>
      <dc:creator>KevinDurkee</dc:creator>
      <dc:date>2023-05-03T18:29:17Z</dc:date>
    </item>
  </channel>
</rss>

