<?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: Display Image in Pop Up using conditional statements. in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1382871#M57496</link>
    <description>&lt;P&gt;I am using AGOL. So any other solutions would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2024 16:03:39 GMT</pubDate>
    <dc:creator>Skysurfer</dc:creator>
    <dc:date>2024-02-15T16:03:39Z</dc:date>
    <item>
      <title>Display Image in Pop Up using conditional statements.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1382798#M57492</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a field named CVA_Partner_ and it has a value of either yes or no. If it is yes, Yes, Y, or y, I need it to display an image in the pop-up. Otherwise I don't want anything to display. I selected 'add content', 'image', and I placed the an expression in the URL field, but nothing happens in the pop up. I seem to be confused have this works. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is the expression:&amp;nbsp;&lt;/SPAN&gt;&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;CVA_Partner_&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"yes"&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;CVA_Partner_&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&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;CVA_Partner_&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"Y"&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;CVA_Partner_&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"y"&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;'&amp;lt;img src=".../sharing/rest/content/items/78df60bf1f274f26b96176d9975cdbf7/data" alt="Image"&amp;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;</description>
      <pubDate>Thu, 15 Feb 2024 14:22:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1382798#M57492</guid>
      <dc:creator>Skysurfer</dc:creator>
      <dc:date>2024-02-15T14:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Display Image in Pop Up using conditional statements.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1382830#M57495</link>
      <description>&lt;P&gt;Dear Skysurfer,&lt;/P&gt;&lt;P&gt;Hope this message finds you well,&lt;/P&gt;&lt;P&gt;Please follow this steps if you are using ArcGIS Pro,&lt;/P&gt;&lt;P&gt;1) Right click on the feature layer in the content pane and select Configure Pop-ups,&lt;/P&gt;&lt;P&gt;2) In the Configure Pop-ups Pane click on Arcade in the right up corner&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Define a name for you pop-up in the Title field&lt;/P&gt;&lt;P&gt;4) Double clikc on the Expression in the below of the Title and paste the arcade.txt which I put in the attachment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should work,&lt;/P&gt;&lt;P&gt;if you need more info please let me know&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 15:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1382830#M57495</guid>
      <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
      <dc:date>2024-02-15T15:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Display Image in Pop Up using conditional statements.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1382871#M57496</link>
      <description>&lt;P&gt;I am using AGOL. So any other solutions would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 16:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1382871#M57496</guid>
      <dc:creator>Skysurfer</dc:creator>
      <dc:date>2024-02-15T16:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display Image in Pop Up using conditional statements.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1383014#M57502</link>
      <description>&lt;P&gt;Instead of using the Image content, use &lt;A href="https://doc.arcgis.com/en/arcgis-online/create-maps/configure-pop-ups-mv.htm#ESRI_SECTION1_F5CB09E0313A4DA1BD10F18D875FFC3F" target="_self"&gt;Arcade element&lt;/A&gt;. This would be your expression&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var output;
if (Lower($feature.CVA_Partner_) == "yes" || Lower($feature.CVA_Partner_) == "y") output = '&amp;lt;img src=".../sharing/rest/content/items/78df60bf1f274f26b96176d9975cdbf7/data" alt="Image"&amp;gt;'

return { 
	type : 'text', 
	text : output //this property supports html tags 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 19:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1383014#M57502</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-02-15T19:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Display Image in Pop Up using conditional statements.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1383150#M57508</link>
      <description>&lt;P&gt;Dear Skysufer,&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;said, you can use in AGOL his method,&lt;/P&gt;&lt;P&gt;I have created a sample Feature layer which you can find the link below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/apps/mapviewer/index.html?panel=gallery&amp;amp;suggestField=true&amp;amp;layers=d98fe2be4dd7406580fa1a6cda18f533" target="_blank"&gt;https://www.arcgis.com/apps/mapviewer/index.html?panel=gallery&amp;amp;suggestField=true&amp;amp;layers=d98fe2be4dd7406580fa1a6cda18f533&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you click on items you will see one of the below images,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="happy.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94973iF19EDC97273EEDF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="happy.png" alt="happy.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sad.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94974i438A36907E603C62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sad.png" alt="sad.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please find the updated arcade.txt file in the attachment. Please copy the arcade.txt file content in the Pop-ups section click on Add Content, select Arcade, delete what is inside and paste the arcade.txt file content in it.&lt;/P&gt;&lt;P&gt;If you need more clarification please let me know.&lt;/P&gt;&lt;P&gt;Best wishes, Stay Safe&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 22:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/display-image-in-pop-up-using-conditional/m-p/1383150#M57508</guid>
      <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
      <dc:date>2024-02-15T22:38:52Z</dc:date>
    </item>
  </channel>
</rss>

