<?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: URL not link shows up in pop up field using Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240383#M49319</link>
    <description>&lt;P&gt;Thanks, this gets me in the right direction. Super helpful!&lt;/P&gt;&lt;P&gt;I was able to cobble this together, can you assist me with figuring out how to add "Yes" instead of "View"?&lt;/P&gt;&lt;P&gt;I am almost there, I think.&amp;nbsp;&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;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SHELTERPREPLAN&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'&lt;A href="https://rtlt.preptoolkit.fema.gov/Public/Resource/ViewFile/9-508-1192?type=Pdf&amp;amp;s=Name&amp;amp;p=7" target="_blank"&gt;https://rtlt.preptoolkit.fema.gov/Public/Resource/ViewFile/9-508-1192?type=Pdf&amp;amp;s=Name&amp;amp;p=7&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 22:08:52 GMT</pubDate>
    <dc:creator>TimHayes3</dc:creator>
    <dc:date>2022-12-12T22:08:52Z</dc:date>
    <item>
      <title>URL not link shows up in pop up field using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240280#M49311</link>
      <description>&lt;P&gt;I am using Map Viewer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need my pop up to show a link (not the actual url) when there is a "Yes" in the field. Here is what I have done so far, but it shows the actual url in the pop up field. What do I need to change to get it to show a link?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&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;SHELTERPREPLAN&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&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;a href= "&lt;A href="https://rtlt.preptoolkit.fema.gov/Public/Resource/ViewFile/9-508-1192?type=Pdf&amp;amp;s=Name&amp;amp;p=7" target="_blank"&gt;https://rtlt.preptoolkit.fema.gov/Public/Resource/ViewFile/9-508-1192?type=Pdf&amp;amp;s=Name&amp;amp;p=7&lt;/A&gt;" &amp;gt;Yes&amp;lt;/a&amp;gt;'&lt;/SPAN&gt; &lt;SPAN&gt;//this property supports html tags &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; } &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here is the result in the popup:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShelterPrePlan Popup.JPG" style="width: 825px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58309i5EF1C4DA3B88A0F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ShelterPrePlan Popup.JPG" alt="ShelterPrePlan Popup.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Dec 2022 18:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240280#M49311</guid>
      <dc:creator>TimHayes3</dc:creator>
      <dc:date>2022-12-12T18:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: URL not link shows up in pop up field using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240372#M49318</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;You can simply return the url as text without the HTML code you've got there and it will appear in the popup as a link with the default caption "View".&lt;/P&gt;&lt;P&gt;Alternatively what you could do is have an attribute expression that returns a text value of "Link to xx", and then add a "Text" section at the bottom of your popup referencing that expression, and add a hyperlink to the site you want to direct users to (not in the arcade expression or HTML, just using the default "add a link" part of the text editor). That way if the shelter pre-plan doesn't have a value the text/link won't appear. Hope that all makes sense, happy to elaborate if need be!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 21:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240372#M49318</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2022-12-12T21:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: URL not link shows up in pop up field using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240383#M49319</link>
      <description>&lt;P&gt;Thanks, this gets me in the right direction. Super helpful!&lt;/P&gt;&lt;P&gt;I was able to cobble this together, can you assist me with figuring out how to add "Yes" instead of "View"?&lt;/P&gt;&lt;P&gt;I am almost there, I think.&amp;nbsp;&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;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SHELTERPREPLAN&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'&lt;A href="https://rtlt.preptoolkit.fema.gov/Public/Resource/ViewFile/9-508-1192?type=Pdf&amp;amp;s=Name&amp;amp;p=7" target="_blank"&gt;https://rtlt.preptoolkit.fema.gov/Public/Resource/ViewFile/9-508-1192?type=Pdf&amp;amp;s=Name&amp;amp;p=7&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240383#M49319</guid>
      <dc:creator>TimHayes3</dc:creator>
      <dc:date>2022-12-12T22:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: URL not link shows up in pop up field using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240386#M49320</link>
      <description>&lt;P&gt;You could definitely accomplish that with the second part of my recommendation! Create two expressions, one that returns "No shelter plan" and one that return "Shelter plan completed" or something along those lines, then add both to a text box at the bottom and add the url that you want them to visit as a link for the "Shelter plan completed" arcade expression and no link for the "No shelter plan".&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:14:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240386#M49320</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2022-12-12T22:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: URL not link shows up in pop up field using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240399#M49321</link>
      <description>&lt;P&gt;Your idea would work, but is there another way to change "View" to "Yes"?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240399#M49321</guid>
      <dc:creator>TimHayes3</dc:creator>
      <dc:date>2022-12-12T22:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: URL not link shows up in pop up field using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240403#M49322</link>
      <description>&lt;P&gt;I don't believe so no, it's been a couple years since I tried to do what you're doing but I'm pretty sure I found it was impossible, unless you formatted the whole popup as HTML.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240403#M49322</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2022-12-12T22:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: URL not link shows up in pop up field using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240404#M49323</link>
      <description>&lt;P&gt;Yes, I heard same thing. I will stay with the "View" and "No". If my client insists on having "Yes" replace "View" then I guess I will need to format whole popup as HTML. Thank you for all your valuable assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240404#M49323</guid>
      <dc:creator>TimHayes3</dc:creator>
      <dc:date>2022-12-12T22:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: URL not link shows up in pop up field using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240887#M49351</link>
      <description>&lt;P&gt;No worries, glad I could help out Tim!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 00:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-not-link-shows-up-in-pop-up-field-using-arcade/m-p/1240887#M49351</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2022-12-14T00:31:45Z</dc:date>
    </item>
  </channel>
</rss>

