<?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 Arcade - Hyperlink (from field) as text in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696075#M34562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create an Arcade expression that inserts a hyperlink as text.&amp;nbsp; Is this possible just in Arcade or does this require html formatting in the popup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field = SampleBallotURL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my expression to show...&lt;/P&gt;&lt;P&gt;&amp;nbsp; If SampleBallotURL is empty or null, return "No sample ballot available at this time."&lt;/P&gt;&lt;P&gt;&amp;nbsp; Else (if it's not empty or null) return "Click &amp;lt;a href=Sample BallotURL&amp;gt;here&amp;lt;/a&amp;gt; to view a sample ballot."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this, but you can see (in the images), the 'No sample...' portion works but the hyperlink does not appear as text where the condition is false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;IIF(IsEmpty($feature.SampleBallotURL),'No sample ballot available at this time.','Click &amp;lt;a href=$feature.SampleBallotURL&amp;gt;here &amp;lt;/a&amp;gt; to view sample ballot.')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;IMG __jive_id="479178" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/479178_pastedImage_2.png" /&gt; &lt;IMG __jive_id="479179" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/479179_pastedImage_3.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Can somebody point me in the right direction?&amp;nbsp; I've read some other posts that indicate I need to do some html work in the popup but I'm not sure how to do that and get it so that only one of these lines is returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;I should add that when include quotation marks like in a normal &amp;lt;a href&amp;gt; they appear in the popup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/479181_pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2020 16:39:43 GMT</pubDate>
    <dc:creator>AdamGebhart</dc:creator>
    <dc:date>2020-01-24T16:39:43Z</dc:date>
    <item>
      <title>Arcade - Hyperlink (from field) as text</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696075#M34562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create an Arcade expression that inserts a hyperlink as text.&amp;nbsp; Is this possible just in Arcade or does this require html formatting in the popup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field = SampleBallotURL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my expression to show...&lt;/P&gt;&lt;P&gt;&amp;nbsp; If SampleBallotURL is empty or null, return "No sample ballot available at this time."&lt;/P&gt;&lt;P&gt;&amp;nbsp; Else (if it's not empty or null) return "Click &amp;lt;a href=Sample BallotURL&amp;gt;here&amp;lt;/a&amp;gt; to view a sample ballot."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this, but you can see (in the images), the 'No sample...' portion works but the hyperlink does not appear as text where the condition is false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;IIF(IsEmpty($feature.SampleBallotURL),'No sample ballot available at this time.','Click &amp;lt;a href=$feature.SampleBallotURL&amp;gt;here &amp;lt;/a&amp;gt; to view sample ballot.')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;IMG __jive_id="479178" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/479178_pastedImage_2.png" /&gt; &lt;IMG __jive_id="479179" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/479179_pastedImage_3.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Can somebody point me in the right direction?&amp;nbsp; I've read some other posts that indicate I need to do some html work in the popup but I'm not sure how to do that and get it so that only one of these lines is returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;I should add that when include quotation marks like in a normal &amp;lt;a href&amp;gt; they appear in the popup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/479181_pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 16:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696075#M34562</guid>
      <dc:creator>AdamGebhart</dc:creator>
      <dc:date>2020-01-24T16:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Hyperlink (from field) as text</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696076#M34563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/agebhart_johnsoncounty"&gt;agebhart_johnsoncounty&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently Arcade does not support returning html (this will be possible in the future). For now you will have to use the custom html formatting in the pop-up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 16:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696076#M34563</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-24T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Hyperlink (from field) as text</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696077#M34564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&amp;nbsp; I think I found a quick way of doing this without having to mess with the html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Expression3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;IIF(IsEmpty($feature.SampleBallotURL),'','To see a sample ballot click ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Expression4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;IIF(IsEmpty($feature.SampleBallotURL),'','here')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;And this in the popup (minus all the other stuff that will go in it).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Popup configuration screenshot" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/479190_popup config screenshot.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Popup link property" class="jive-emoji jive-image image-2 j-img-original" src="/legacyfs/online/479191_popup link properties.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 20:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696077#M34564</guid>
      <dc:creator>AdamGebhart</dc:creator>
      <dc:date>2020-01-24T20:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Hyperlink (from field) as text</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696078#M34565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/people/agebhart_johnsoncounty"&gt;agebhart_johnsoncounty&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks good. Here a link to another related discussion that includes html customization of the&amp;nbsp;pop-up:&amp;nbsp;&lt;A href="https://community.esri.com/thread/232064"&gt;Hyperlink within expression of pop-up in AGOL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 20:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-hyperlink-from-field-as-text/m-p/696078#M34565</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-24T20:42:34Z</dc:date>
    </item>
  </channel>
</rss>

