<?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: Remove/Hide Empty Line in Popup when Arcade Expression Returns Blank in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1632952#M23762</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;status&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"Demolished"&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'text'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;b&amp;gt;!!This Building is Demolished!!&amp;lt;/b&amp;gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So for you:&lt;BR /&gt;&lt;BR /&gt;if ($feature.funding != "NO") {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; return {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;type: 'text',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;text: "Funding: " + $feature.funding&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This will only create a line when funding is not equal to "NO", provided I made no typos.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 14 Jul 2025 20:47:06 GMT</pubDate>
    <dc:creator>JoshBerna</dc:creator>
    <dc:date>2025-07-14T20:47:06Z</dc:date>
    <item>
      <title>Remove/Hide Empty Line in Popup when Arcade Expression Returns Blank</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1621379#M23751</link>
      <description>&lt;P&gt;So, I'm sure many folks who've fiddle around with arcade expressions in webmaps have noticed that, when an arcade expression (added as a text element, not an arcade element) returns null in a popup, it still takes up a blank line as a sort of placeholder.&lt;/P&gt;&lt;P&gt;My question is if there's a way to hide this line. So, say my expression is this:&lt;/P&gt;&lt;P&gt;if($feature.status == "Demolished") {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return "This Feature Has Been Demolished"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;When $feature.status != demolished a line is still created in the place of where the text should be, resulting in an empty line in between popup elements, despite the lack of an else return statement such as "else return ""."&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen similar posts about this in the community but haven't found a working answer. If anybody could tell me whether this is fixable or destined to be I would greatly appreciate it.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 21:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1621379#M23751</guid>
      <dc:creator>JoshBerna</dc:creator>
      <dc:date>2025-06-05T21:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove/Hide Empty Line in Popup when Arcade Expression Returns Blank</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1621407#M23752</link>
      <description>&lt;P&gt;you could try the following at the end of a sentence in the popup rather than on a new line&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if($feature.status == "PLN") {
     return (TextFormatting.NewLine + "This Feature Has Been Demolished")
}
else {
     return ""
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Does this meet your needs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 00:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1621407#M23752</guid>
      <dc:creator>BrendanNewell</dc:creator>
      <dc:date>2025-06-06T00:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove/Hide Empty Line in Popup when Arcade Expression Returns Blank</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1621506#M23753</link>
      <description>&lt;P&gt;It doesn't look like there's a way to do that within the text element. Is there way to replicate what you have in the text element in an Arcade element instead?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 13:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1621506#M23753</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-06-06T13:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove/Hide Empty Line in Popup when Arcade Expression Returns Blank</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1621528#M23754</link>
      <description>&lt;P&gt;Yes there is, whoops, I just had to return a dictionary in the element itself rather than a string. Still getting the hang of arcade. Thanks for the suggestion!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 15:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1621528#M23754</guid>
      <dc:creator>JoshBerna</dc:creator>
      <dc:date>2025-06-06T15:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Remove/Hide Empty Line in Popup when Arcade Expression Returns Blank</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1632947#M23761</link>
      <description>&lt;P&gt;How do you return a dictionary?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to hide the full row in my popup is there is NO funding for the cost of a project. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 20:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1632947#M23761</guid>
      <dc:creator>ChristopherPollard</dc:creator>
      <dc:date>2025-07-14T20:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove/Hide Empty Line in Popup when Arcade Expression Returns Blank</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1632952#M23762</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;status&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"Demolished"&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'text'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;b&amp;gt;!!This Building is Demolished!!&amp;lt;/b&amp;gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So for you:&lt;BR /&gt;&lt;BR /&gt;if ($feature.funding != "NO") {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; return {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;type: 'text',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;text: "Funding: " + $feature.funding&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This will only create a line when funding is not equal to "NO", provided I made no typos.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Jul 2025 20:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/remove-hide-empty-line-in-popup-when-arcade/m-p/1632952#M23762</guid>
      <dc:creator>JoshBerna</dc:creator>
      <dc:date>2025-07-14T20:47:06Z</dc:date>
    </item>
  </channel>
</rss>

