<?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: Pop-up: Link to URL with Link text; if empty return text No As-Built Document text in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1695488#M68375</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;this worked, thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2026 12:10:48 GMT</pubDate>
    <dc:creator>GeoWorld13</dc:creator>
    <dc:date>2026-04-10T12:10:48Z</dc:date>
    <item>
      <title>Pop-up: Link to URL with Link text; if empty return text No As-Built Document text</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1694143#M68332</link>
      <description>&lt;P&gt;Hello - I would like to create a dynamic pop-up that links out to an As-Built document related to a feature. However, some features do not have any As-Builts and have empty values in the data. If that is the case, I want the pop-up to read:&amp;nbsp;&lt;SPAN&gt;There is no As-Built Plan for this project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What I have so far is an attribute expression:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&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;Orignal_Project_PDF&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;return&lt;/SPAN&gt; &lt;SPAN&gt;"There is no As-Built Plan for this project."&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;else&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;return&lt;/SPAN&gt; &lt;SPAN&gt;'&amp;lt;a href="'&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;Orignal_Project_PDF&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;'" target="_blank"&amp;gt;Link&amp;lt;/a&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt;;&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;Pop-up HTML:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;strong&amp;gt;&lt;span class="lia-unicode-emoji" title=":page_facing_up:"&gt;📄&lt;/span&gt; As-Built Plans:&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;BR /&gt;{expression/expr4}&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How ever my pop-up looks like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoWorld13_0-1775138758675.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/150593i27B27705B9DBCF05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoWorld13_0-1775138758675.png" alt="GeoWorld13_0-1775138758675.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoWorld13_1-1775138787025.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/150594iF3E743AD2BCA04D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoWorld13_1-1775138787025.png" alt="GeoWorld13_1-1775138787025.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See anything I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17874"&gt;@RussRoberts&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Apr 2026 16:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1694143#M68332</guid>
      <dc:creator>GeoWorld13</dc:creator>
      <dc:date>2026-04-02T16:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up: Link to URL with Link text; if empty return text No As-Built Document text</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1694215#M68338</link>
      <description>&lt;P&gt;This gets you closer, however it formats the static text as a link as well...&lt;/P&gt;&lt;P&gt;The expression:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&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;Orignal_Project_PDF&lt;/SPAN&gt;&lt;SPAN&gt;)) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"There is no As-Built Plan for this project."&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;else&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Orignal_Project_PDF&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then to add that in the popup add text and insert your expression as a link and put in your expression name.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neal_t_k_0-1775147156196.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/150617i30829F22BBBF086D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neal_t_k_0-1775147156196.png" alt="Neal_t_k_0-1775147156196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HTML:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;strong&amp;gt;As-Built Plans:&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;BR /&gt;&amp;lt;a href="{expression/expr0}"&amp;gt;{expression/expr0}&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcade-add-url-to-pop-up/m-p/1640426/highlight/true#M65890" target="_blank"&gt; Solved: Re: Arcade add URL to pop-up - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 16:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1694215#M68338</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-04-02T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up: Link to URL with Link text; if empty return text No As-Built Document text</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1694364#M68344</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/964461"&gt;@GeoWorld13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just revisted and think I got it to work, instead of an expression and a text popup, just add an Arcade item and do all of it there:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neal_t_k_0-1775224470292.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/150662i87C64A3197EA5FE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neal_t_k_0-1775224470292.png" alt="Neal_t_k_0-1775224470292.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;add this code:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var nolink = "There is no As-Built Plan for this project."
var url1 = $feature.Orignal_Project_PDF
var base = ""
if (IsEmpty($feature.Orignal_Project_PDF)) {
    var base =  nolink;
} else {
    var base = '&amp;lt;a href='+url1+' target="_blank"&amp;gt;Link&amp;lt;/a&amp;gt;';
}

return { 
	type : 'text', 
	text : "&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;As-Built Plans:&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;"+base+"&amp;lt;/p&amp;gt;"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 14:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1694364#M68344</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-04-03T14:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pop-up: Link to URL with Link text; if empty return text No As-Built Document text</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1695488#M68375</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;this worked, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 12:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-up-link-to-url-with-link-text-if-empty-return/m-p/1695488#M68375</guid>
      <dc:creator>GeoWorld13</dc:creator>
      <dc:date>2026-04-10T12:10:48Z</dc:date>
    </item>
  </channel>
</rss>

