<?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 Configuring public notification widget PDF mailing labels, not accepting multiple lines used in an attribute expression in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/configuring-public-notification-widget-pdf-mailing/m-p/1176197#M46146</link>
    <description>&lt;P&gt;I am trying to use the public notification widget. I have configured my text pop-up with 3 attribute expressions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;p&amp;gt;
    {expression/expr0}
    &amp;lt;br&amp;gt;
    {expression/expr1}
    &amp;lt;br&amp;gt;
    {expression/expr2}
&amp;lt;/p&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In {expression/expr0}, I have the following arcade expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var customer_field = $feature["Customer_Name"]

if (Find(',', customer_field,0)&amp;gt;-1) {
    var name = split($feature["Customer_Name"], ",")
    return Concatenate(name, TextFormatting.NewLine)
}
else {
    return customer_field
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set up my parcel data in a way that if a parcel polygon has more than one owner, the names are separated by commas. In the {expression/expr0}, it looks at the 'Customer_Name' field, and if a comma is found, it takes the text after the comma and puts it onto a new line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pop-up looks exactly how I want it when you click on a parcel and is formatted in the following way:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner1&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner2&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Address&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;City, Province Postal Code&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;or&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Address&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;City, Province Postal Code&lt;/P&gt;&lt;P&gt;However, when I generate mailing labels in PDF format, the first expression is not being accepted and the owners are being put on one line. So I have a mailing label that looks like this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner Owner1 Owner 2&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Address&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;City, Province Postal Code&lt;/P&gt;&lt;P&gt;With this format, the labels cannot be read, because the length of the first line is too long and the font gets squished and cut off.&lt;/P&gt;&lt;P&gt;Is there a way to have multiple lines in the generated mailing labels using the public notification widget?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2022 21:52:19 GMT</pubDate>
    <dc:creator>N_W_S_E</dc:creator>
    <dc:date>2022-05-21T21:52:19Z</dc:date>
    <item>
      <title>Configuring public notification widget PDF mailing labels, not accepting multiple lines used in an attribute expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/configuring-public-notification-widget-pdf-mailing/m-p/1176197#M46146</link>
      <description>&lt;P&gt;I am trying to use the public notification widget. I have configured my text pop-up with 3 attribute expressions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;p&amp;gt;
    {expression/expr0}
    &amp;lt;br&amp;gt;
    {expression/expr1}
    &amp;lt;br&amp;gt;
    {expression/expr2}
&amp;lt;/p&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In {expression/expr0}, I have the following arcade expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var customer_field = $feature["Customer_Name"]

if (Find(',', customer_field,0)&amp;gt;-1) {
    var name = split($feature["Customer_Name"], ",")
    return Concatenate(name, TextFormatting.NewLine)
}
else {
    return customer_field
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set up my parcel data in a way that if a parcel polygon has more than one owner, the names are separated by commas. In the {expression/expr0}, it looks at the 'Customer_Name' field, and if a comma is found, it takes the text after the comma and puts it onto a new line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pop-up looks exactly how I want it when you click on a parcel and is formatted in the following way:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner1&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner2&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Address&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;City, Province Postal Code&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;or&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Address&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;City, Province Postal Code&lt;/P&gt;&lt;P&gt;However, when I generate mailing labels in PDF format, the first expression is not being accepted and the owners are being put on one line. So I have a mailing label that looks like this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Owner Owner1 Owner 2&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Address&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;City, Province Postal Code&lt;/P&gt;&lt;P&gt;With this format, the labels cannot be read, because the length of the first line is too long and the font gets squished and cut off.&lt;/P&gt;&lt;P&gt;Is there a way to have multiple lines in the generated mailing labels using the public notification widget?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 21:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/configuring-public-notification-widget-pdf-mailing/m-p/1176197#M46146</guid>
      <dc:creator>N_W_S_E</dc:creator>
      <dc:date>2022-05-21T21:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring public notification widget PDF mailing labels, not accepting multiple lines used in an attribute expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/configuring-public-notification-widget-pdf-mailing/m-p/1203715#M47470</link>
      <description>&lt;P&gt;Have you figured out a way around the TextFormatting.NewLine? I have a similar issue, where either there's a blank line in the address label, or what shows up as 2 lines in the pop-up shows up on 1 line in the labels. Neither of which are ideal situations.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 13:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/configuring-public-notification-widget-pdf-mailing/m-p/1203715#M47470</guid>
      <dc:creator>MT_JenAmes</dc:creator>
      <dc:date>2022-08-17T13:58:35Z</dc:date>
    </item>
  </channel>
</rss>

