<?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 Expression Help-Conditional Table in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79042#M3849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this blog, it may point you in the right direction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups?sr=search&amp;amp;searchId=841d6770-775c-4345-9bfa-9630e41626a9&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups?sr=search&amp;amp;searchId=841d6770-775c-4345-9bfa-9630e41626a9&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2018 00:12:05 GMT</pubDate>
    <dc:creator>KellyGerrow</dc:creator>
    <dc:date>2018-05-01T00:12:05Z</dc:date>
    <item>
      <title>Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79041#M3848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble implementing what I want as a popup for a point layer. The points represent physical locations and basically store URLs to photos and video of the location. There are five photo URLfields (photo01, photo02, photo03, photo4, photo5) and five video URL fields (video01, video02, video03, video04, video05).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A site may have &lt;EM&gt;&lt;STRONG&gt;UP TO&lt;/STRONG&gt;&lt;/EM&gt; 5 photos or videos or it may have none. Because of this, ideally I'd like the attributes to adjust accordingly. For example, if a site has no photos and 2 videos, the popup would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Photos:&lt;/P&gt;&lt;P&gt;No Photos currently. Please Check back&lt;/P&gt;&lt;P&gt;Video:&lt;/P&gt;&lt;P&gt;Video 01: &amp;lt;url&amp;gt;&lt;/P&gt;&lt;P&gt;Video 02: &amp;lt;url&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some expressions which help me determine if the field is empty but I can't figure out how to incorporate that into a dynamic table in the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here'e the actual &lt;A href="https://arcg.is/1nvnvz"&gt;service layer link&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2018 05:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79041#M3848</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2018-04-29T05:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79042#M3849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this blog, it may point you in the right direction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups?sr=search&amp;amp;searchId=841d6770-775c-4345-9bfa-9630e41626a9&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups?sr=search&amp;amp;searchId=841d6770-775c-4345-9bfa-9630e41626a9&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 00:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79042#M3849</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2018-05-01T00:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79043#M3850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but no- not really. I understand using Arcade, to a point, but AGOL doesn't seem to honor the HTML formatted output that I generate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my Arcade expression:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Write a script to return a value to show in the pop-up.&lt;BR /&gt;// For example, get the average of 4 fields:&lt;BR /&gt;// Average($feature.SalesQ1, $feature.SalesQ2, $feature.SalesQ3, $feature.SalesQ4)&lt;/P&gt;&lt;P&gt;var popupText = '&amp;lt;b&amp;gt;Location: ' + $feature.unitName + '&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;360 Degree Photos:&amp;lt;/b&amp;gt;&amp;lt;table&amp;gt;';&lt;BR /&gt;var counter=0;&lt;BR /&gt;var tableText = '';&lt;BR /&gt;var chkPhoto01Field = IsEmpty($feature["VR_IMG_URL"]);&lt;BR /&gt;var chkPhoto02Field = IsEmpty($feature["VR_IMG_U_1"]);&lt;BR /&gt;var chkPhoto03Field = IsEmpty($feature["VR_IMG_U_2"]);&lt;BR /&gt;var chkPhoto04Field = IsEmpty($feature["VR_IMG_U_3"]);&lt;BR /&gt;var chkPhoto05Field = IsEmpty($feature["VR_IMG_U_4"]);&lt;BR /&gt;var finalText = '';&lt;/P&gt;&lt;P&gt;if (chkPhoto01Field) {&lt;BR /&gt; counter = counter+1;&lt;BR /&gt; tableText = tableText + '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Photo ' + counter + ':&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href="' + $feature["VR_IMG_URL"] + '" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (chkPhoto02Field) {&lt;BR /&gt; counter = counter+1;&lt;BR /&gt; tableText = tableText + '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Photo ' + counter + ':&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href="' + $feature["VR_IMG_U_1"] + '" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (chkPhoto03Field) {&lt;BR /&gt; counter = counter+1;&lt;BR /&gt; tableText = tableText + '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Photo ' + counter + ':&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href="' + $feature["VR_IMG_U_2"] + '" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (chkPhoto04Field) {&lt;BR /&gt; counter = counter+1;&lt;BR /&gt; tableText = tableText + '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Photo ' + counter + ':&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href="' + $feature["VR_IMG_U_3"] + '" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (chkPhoto05Field) {&lt;BR /&gt; counter = counter+1;&lt;BR /&gt; tableText = tableText + '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Photo ' + counter + ':&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href="' + $feature["VR_IMG_U_4"] + '" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (counter==0) {&lt;BR /&gt; tableText = '&amp;lt;tr&amp;gt;&amp;lt;td colspan="2"&amp;gt;No Content Currently. Please check back.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;finalText = popupText + tableText + '&amp;lt;/table&amp;gt;';&lt;/P&gt;&lt;P&gt;return finalText;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here's the resulting popup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/405407_arcade_output_example.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's how I set up the popup output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/405408_popup_config.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Popups support HTML formatting but the end output just treats it as literal text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 03:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79043#M3850</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2018-05-01T03:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79044#M3851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I rethought how my URLs are stored in my data which better positioned me to try the technique from the blog post. The results are close to what I want but not quite. Here's the HTML table in the popup config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;table cellpadding="0px" cellspacing="3px"&amp;gt;&lt;BR /&gt; &amp;lt;tbody&amp;gt;&lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Photos:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr8}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_IMG_URL}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr9}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_IMG_U_1}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr10}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_IMG_U_2}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr11}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_IMG_U_3}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr12}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_IMG_U_4}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Videos:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr13}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_VID_URL}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr14}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_VID_U_1}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr15}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_VID_U_2}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr16}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_VID_U_3}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;{expression/expr17}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{VR_VID_U_4}" target="_blank"&amp;gt;Click to View&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;/tbody&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG __jive_id="405409" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/405409_arcade_output_example_2.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, it correctly notes that there is 1 photo and 1 video for this location but it does not hide the row from the table if the URL field is blank. The links for the valid media are correct &amp;amp; work and the links that shouldn't appear are "about:blank".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the same IIF logic per the blog post for each URL field. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;IIF(isEmpty($feature["VR_IMG_URL"]), "", "Photo 1:")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 06:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79044#M3851</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2018-05-01T06:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79045#M3852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your data has some inconsistencies. I tried two different IIF statements in different expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIF(IsEmpty($feature["VR_IMG_U_1"]), 'Not Present', "Photo 1") ("Is Empty" popup field)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;IIF($feature["VR_IMG_U_1"] != ' ', 'Photo1', "Not Present") ("Quoted" popup field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I'm seeing different responses for different points. Here's the popups for two different points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/405361_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/405413_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then I added another expression to make the spaces visible&lt;/P&gt;&lt;P&gt;Replace($feature["VR_IMG_U_1"], " ", "x")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the two popups again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/405414_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/405415_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 14:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79045#M3852</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-05-01T14:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79046#M3853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes- I noticed an issue last night with the fields and &lt;EM&gt;thought&lt;/EM&gt; I had fixed them prior to my last post. I discovered that the URL fields that I thought were empty actually contained a space. I attempted to remove them from my hosted layer but perhaps I did not do so correctly. I can update my hosted layer once I look at it in Arcmap. That does bring up something I discovered while working on this last night. There is no length function within Arcade, and that would have been more helpful for me instead of using isEmpty. I could have just evaluated a length &amp;gt; 3 to determine the presence of a URL in the field but alas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 15:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79046#M3853</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2018-05-01T15:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79047#M3854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search for the "https" in the fields using &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#find"&gt;Find&lt;/A&gt; instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 15:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79047#M3854</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-05-01T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79048#M3855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roundabout way but, yeah, that would work. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 15:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79048#M3855</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2018-05-01T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79049#M3856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really roundabout. You'd use the same logic as your previous IIF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIF(Find('https', $feature["VR_IMG_U_1"]) &amp;gt; -1, 'Photo 1', 'Not Present')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 15:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79049#M3856</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-05-01T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79050#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant that I was focused on looking at the length of field's value to determine if it was populated that I hadn't even considered that you could also just query for part of the URL and get the same, reliable (if not more accurate) result. Hopefully this change will get things the way I want. I'll check it out later today. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 15:45:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79050#M3857</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2018-05-01T15:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help-Conditional Table</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79051#M3858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to do way to much work to get this work but I guess this will be as close as I'm able to get to what I want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/405491_arcade_output_example_final.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One glaring deficiency of using Arcade (for me, at least) is that any output that the Arcade Expression generates that includes HTML tag elements is NOT honored by the configuration screen. It simply passes it along as text. As such, for each row of my screen shot above, I needed to use two expressions- one for the actual URL of the link, and a second expression for the "Click to View" text of the &amp;lt;a&amp;gt; element. For both expressions, I simply used the IIF that Ken suggested based on the Find function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final config HTML was this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;table cellpadding="0px" cellspacing="3px"&amp;gt;&lt;BR /&gt; &amp;lt;tbody&amp;gt;&lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td colspan="2"&amp;gt;&amp;lt;b&amp;gt;SITE:&amp;nbsp;&amp;lt;/b&amp;gt;{unitName}&amp;lt;br /&amp;gt;&amp;nbsp;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;&amp;lt;br /&amp;gt;PHOTOS:&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Photo 1:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr8}" target="_blank"&amp;gt;{expression/expr18}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Photo 2:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr9}" target="_blank"&amp;gt;{expression/expr19}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Photo 3:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr10}" target="_blank"&amp;gt;{expression/expr20}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Photo 4:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr11}" target="_blank"&amp;gt;{expression/expr21}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Photo 5:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr12}" target="_blank"&amp;gt;{expression/expr22}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td colspan="2"&amp;gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;VIDEOS:&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Video 1:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr13}" target="_blank"&amp;gt;{expression/expr23}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Video 2:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr14}" target="_blank"&amp;gt;{expression/expr24}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Video 3:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr15}" target="_blank"&amp;gt;{expression/expr25}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Video 4:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr16}" target="_blank"&amp;gt;{expression/expr26}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Video 5:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;a href="{expression/expr17}" target="_blank"&amp;gt;{expression/expr27}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt; &lt;BR /&gt; &amp;lt;/tbody&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;i&amp;gt;(Links Open in a New Window&amp;lt;/i&amp;gt;&amp;nbsp;)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 03:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-help-conditional-table/m-p/79051#M3858</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2018-05-02T03:11:21Z</dc:date>
    </item>
  </channel>
</rss>

