<?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: Arcade text not working in a pop-up in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377577#M57231</link>
    <description>&lt;P&gt;On MapViewer (not the classic one) you should have this button on right:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norookezi_0-1706885959907.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93556iBEB910DEBAD0DE27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norookezi_0-1706885959907.png" alt="Norookezi_0-1706885959907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click on it to see the context menu drawer&lt;BR /&gt;Then, at the bottom, you'll have "+ Add content" button&lt;BR /&gt;When you click on it, a new popup should appear, click on "Arcade"&lt;BR /&gt;Now a code editor should appear, put your code in it, you can try to click on "Run" to see if your code work properly&lt;BR /&gt;&lt;BR /&gt;Then, click on "Finish" at the bottom right&lt;BR /&gt;Now you should see your text appear on the context menu each time you click on a new point&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 15:03:14 GMT</pubDate>
    <dc:creator>N0MAD</dc:creator>
    <dc:date>2024-02-02T15:03:14Z</dc:date>
    <item>
      <title>Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377478#M57220</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi folks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to do something similar to a previous post with regard to the popup in Map Viewer the pop-up. I want to display a bit of text with the link to a report, where one exists, but leave it completely blank where there isn't one. I assumed I could do this with the add 'Arcade' element to the pop-up, but although I have written a bit of code which returns the correct value in the test area, it doesn't work when live. Have I misunderstood how this works? I should add that I'm new to Arcade, beyond the simple stuff in Pro.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I attach a sample subset of my data and below is the bit of arcade I wrote. I deleted the text bit, as I assume I can just add this within the brackets, once I get the report itself to work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (isempty ($feature.ADS_Link_to_Recording_Report)){return null}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else {return ($feature.ADS_Link_to_Recording_Report)}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I suspect I'm doing something basic wrong, but I'm not sure what.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ta&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 09:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377478#M57220</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2024-02-02T09:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377517#M57222</link>
      <description>&lt;P&gt;I believe the return for a popup needs to be an object now, so you have to return:&lt;BR /&gt;&lt;BR /&gt;return {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type : 'text',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text : 'my text here'&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;instead of just null or a features property.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var return_text

IIf (IsEmpty($feature.ADS_Link_to_Recording_Report),return_text = null, return_text = $feature.ADS_Link_to_Recording_Report)

return { 
	type : 'text', 
	text : return_text
}&lt;/LI-CODE&gt;&lt;P&gt;Should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 13:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377517#M57222</guid>
      <dc:creator>JohnEvans6</dc:creator>
      <dc:date>2024-02-02T13:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377525#M57223</link>
      <description>&lt;P&gt;Hi John, that worked thanks, but as I said I was hoping to actually have some text i.e. "&lt;SPAN&gt;Read the Archaeology Data Service report for&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://archaeologydataservice.ac.uk/library/browse/issue.xhtml?recordId=1204773&amp;amp;recordType=GreyLitSeries" target="_blank" rel="nofollow noopener ugc"&gt;&lt;SPAN&gt;Bury St. Edmunds Gasworks&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, if available". I just tried adding that and it fell over &lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;The linked text will be from {Site_Name_and_Address&amp;nbsp;}, with the actual link to {$feature.ADS_Link_to_Recording_Report}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Am I trying to do something too complicated?&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 13:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377525#M57223</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2024-02-02T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377526#M57224</link>
      <description>&lt;P&gt;The thing is that your returns statements might contains the type and the text if they aren't in a function like so:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return {
    type: 'text',
    text: //yourContent
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Otherwise, Arcade won't be able to process your text&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 13:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377526#M57224</guid>
      <dc:creator>N0MAD</dc:creator>
      <dc:date>2024-02-02T13:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377530#M57225</link>
      <description>&lt;P&gt;Hi there, as I said I'm new to Arcade, and I'm afraid I don't understand what you're saying. How would that fit into the arcade I've already got?&lt;/P&gt;&lt;P&gt;Sorry&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 13:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377530#M57225</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2024-02-02T13:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377545#M57226</link>
      <description>&lt;P&gt;I can't open your files, can you past you code directly in this conversation please ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 14:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377545#M57226</guid>
      <dc:creator>N0MAD</dc:creator>
      <dc:date>2024-02-02T14:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377546#M57227</link>
      <description>&lt;P&gt;I'm afraid that I've only been able to use the code that John sent above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 14:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377546#M57227</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2024-02-02T14:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377552#M57228</link>
      <description>&lt;P&gt;I strongly encourage you to read the doc if you didn't already did: &lt;A href="https://developers.arcgis.com/arcade/" target="_self"&gt;ArcGIS Arcade&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When you have a text that you want to display, you'll need to return with the right type&lt;BR /&gt;&lt;BR /&gt;For instance, for your code above:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Here, you create a variable called text
// You asign him a DefaultValue which mean
//take the value it not empty, else take the second argument
//cf: https://developers.arcgis.com/arcade/function-reference/logical_functions/#example-1
var yourText = DefaultValue($feature.ADS_Link_to_Recording_Report, 'No data')
// If you want, you can replace 'No data' by what ever you want to be displayed if no content

//Then, you need to display the content, so use the return statement
//Define the type as 'text' like so
//And then, set the content of this text
//with the 'text' key to the content that you want to display
return {
  'type': 'text',
  'text': yourText
}
    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This code should work&lt;/P&gt;&lt;P&gt;Do you know where you need to past it ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 14:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377552#M57228</guid>
      <dc:creator>N0MAD</dc:creator>
      <dc:date>2024-02-02T14:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377568#M57229</link>
      <description>&lt;P&gt;Thanks for that. I have tried reading that doc before, but must admit that I quickly got lost, and so in answer to your question, no, I don't know where to paste that in relation to what I've already got.&lt;/P&gt;&lt;P&gt;Sorry and thanks for your understanding and help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 14:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377568#M57229</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2024-02-02T14:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377577#M57231</link>
      <description>&lt;P&gt;On MapViewer (not the classic one) you should have this button on right:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norookezi_0-1706885959907.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93556iBEB910DEBAD0DE27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norookezi_0-1706885959907.png" alt="Norookezi_0-1706885959907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click on it to see the context menu drawer&lt;BR /&gt;Then, at the bottom, you'll have "+ Add content" button&lt;BR /&gt;When you click on it, a new popup should appear, click on "Arcade"&lt;BR /&gt;Now a code editor should appear, put your code in it, you can try to click on "Run" to see if your code work properly&lt;BR /&gt;&lt;BR /&gt;Then, click on "Finish" at the bottom right&lt;BR /&gt;Now you should see your text appear on the context menu each time you click on a new point&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 15:03:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377577#M57231</guid>
      <dc:creator>N0MAD</dc:creator>
      <dc:date>2024-02-02T15:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377580#M57232</link>
      <description>&lt;P&gt;I've been using the pop-up as you'll see from the screen shot, I've managed to get the url to appear, but I'm not getting anywhere with the text. I've put the text I want in the normal 'Text' box, but then I get text no matter what.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MapViewer_pop-up.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93557i180490F22CB805E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MapViewer_pop-up.jpg" alt="MapViewer_pop-up.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 15:09:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377580#M57232</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2024-02-02T15:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377589#M57233</link>
      <description>&lt;P&gt;If you want to put "fancy links" you might have to learn a bit of html and know the &lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm" target="_self"&gt;supported tags&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Here a quick example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;/*
Here, i use a IIF (so if the first argument is true, pick the second argument, else pick the third)
cf: https://developers.arcgis.com/arcade/function-reference/logical_functions/#iifcondition-truevalue-falsevalue---any

Here, in the second argument, i put a hyperlink in html
By using the '`' character, i can insert variables into the string
cf: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

So, if there is a link, add the hyperlink in html, else just write 'No link' 
*/
var yourLink = IIF(
   $feature.ADS_Link_to_Recording_Report == '',
   `&amp;lt;a href="${$feature.ADS_Link_to_Recording_Report}&amp;gt;Link to the report&amp;lt;/a&amp;gt;"`,
   'No link'
)

return {
  'type': 'text',
  'text': yourLink
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should work&lt;BR /&gt;(Don't forget to give a 'Kudo' with the button at the bottom of my message if it helped)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 15:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377589#M57233</guid>
      <dc:creator>N0MAD</dc:creator>
      <dc:date>2024-02-02T15:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377601#M57236</link>
      <description>&lt;P&gt;Hi there, that's very helpful in terms of explanation, thanks.&lt;/P&gt;&lt;P&gt;Unfortunately, it gives a null return, even when there is a url (see attached)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MapViewer_pop-up2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93563iEF540F5AB5124EAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MapViewer_pop-up2.jpg" alt="MapViewer_pop-up2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The upper part of text with the url comes from John's original code, the lower 'No link' from yours. I'm assuming == ' ' looks for anything not null, but this doesn't seem to have worked.&lt;/P&gt;&lt;P&gt;Sorry&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 15:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377601#M57236</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2024-02-02T15:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377644#M57240</link>
      <description>&lt;P&gt;That code should be changed slightly (changing "==" to "!="&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var yourLink = IIF(
   $feature.ADS_Link_to_Recording_Report != '',
   `&amp;lt;a href="${$feature.ADS_Link_to_Recording_Report}&amp;gt;Link to the report&amp;lt;/a&amp;gt;"`,
   'No link'
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 16:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377644#M57240</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-02-02T16:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377647#M57241</link>
      <description>&lt;P&gt;You need something that will post a link below your content if it exists, or else post nothing? Maybe something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// URL Field
var nav_url = $feature.ADS_Link_to_Recording_Report

// True/False to determine if field is empty
var record_link_exists = IsEmpty(nav_url)

// Holds results
var my_text = ''

// If Link is empty, Do not post a link, else Post the text with the link
If (record_link_exists) {
  my_text = `&amp;lt;p&amp;gt;My content without a link goes here&amp;lt;/p&amp;gt;`
} else {
  my_text = `&amp;lt;p&amp;gt;At the end of this content is a link since it exists.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;My Link: &amp;lt;a href=${nav_url}&amp;gt;Click Here To View the Recording Report&amp;lt;/a&amp;gt;`
}

// Show Data
return { 
	type : 'text', 
	text : my_text
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 16:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377647#M57241</guid>
      <dc:creator>JohnEvans6</dc:creator>
      <dc:date>2024-02-02T16:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade text not working in a pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377661#M57245</link>
      <description>&lt;P&gt;Thank you everyone for your help with this. I've done some fiddling based on your suggestions, and a bit more studying of the various docs and created this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// URL Field&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;nav_url&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;ADS_Link_to_Recording_Report&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// True/False to determine if field is empty&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;record_link_exists&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;nav_url&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Holds results&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;my_text&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// If Link is empty, Do not post a link, else Post the text with the link&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;record_link_exists&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;my_text&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;`&amp;lt;p&amp;gt;&amp;lt;span style="font-family:Arial;font-size:large;"&amp;gt;There is no report for this feature&amp;lt;/span&amp;gt;&amp;lt;/p&amp;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; &lt;/SPAN&gt;&lt;SPAN&gt;my_text&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;`&amp;lt;p&amp;gt;&amp;lt;span style="font-family:Arial;font-size:large;"&amp;gt;Read the Archaeology Data Service report for &amp;lt;a href=&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;nav_url&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; ({Site_Name_and_Address})&amp;lt;/a&amp;gt; Report`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Show Data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &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; &lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;my_text&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This now does exactly what I want.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Feb 2024 17:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-text-not-working-in-a-pop-up/m-p/1377661#M57245</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2024-02-02T17:33:56Z</dc:date>
    </item>
  </channel>
</rss>

