<?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: Is it possible to hide  a popup based on attribute? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418661#M59038</link>
    <description>&lt;P&gt;Thanks Cody,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll give it a try.&amp;nbsp; I tried just adding a filter to the layer, but there's no option to write code in the filter, you have to just pick from a set of options which don't include "string length." &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 12:13:18 GMT</pubDate>
    <dc:creator>AngelaSchirck</dc:creator>
    <dc:date>2024-05-03T12:13:18Z</dc:date>
    <item>
      <title>Is it possible to hide  a popup based on attribute?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418612#M59035</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using WebMap Viewer and would like to had a popup for certain attributes.&amp;nbsp; I have Parcel Control Numbers (PCNs) that are 17-digits and 10-digits.&amp;nbsp; I want to hide the popup info for the 10-digit PCNs since this leads to bad links.&amp;nbsp; Does any one know a way to do this?&amp;nbsp; I'm not afraid of a little programming (python, arcade) if that is what it takes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 11:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418612#M59035</guid>
      <dc:creator>AngelaSchirck</dc:creator>
      <dc:date>2024-05-03T11:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide  a popup based on attribute?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418645#M59037</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/616122"&gt;@AngelaSchirck&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can enter an expression and show that field as having data when meeting a condition, I haven't found a way to conditionally enable pop-ups if that's what you're mentioning.&lt;/P&gt;&lt;P&gt;You can use this here to find the count, and this would match your specific use-case:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var &amp;lt;your var&amp;gt; = $feature.&amp;lt;feature name&amp;gt;;

if (Count(&amp;lt;your var&amp;gt;) &amp;lt;= 10) {
    return &amp;lt;your var&amp;gt;;
} else {
    return "";
}&lt;/LI-CODE&gt;&lt;P&gt;You can hit "Select fields" and then "Add expression" to do this. I would disable the viewing of the original ID and give this one a similar name for use!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1714737954717.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102989i69B7C00A99A5E03A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1714737954717.png" alt="CodyPatterson_0-1714737954717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418645#M59037</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-05-03T12:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide  a popup based on attribute?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418661#M59038</link>
      <description>&lt;P&gt;Thanks Cody,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll give it a try.&amp;nbsp; I tried just adding a filter to the layer, but there's no option to write code in the filter, you have to just pick from a set of options which don't include "string length." &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418661#M59038</guid>
      <dc:creator>AngelaSchirck</dc:creator>
      <dc:date>2024-05-03T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to hide  a popup based on attribute?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418683#M59041</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/616122"&gt;@AngelaSchirck&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a GIF that explains what I did , hopefully that helps! If it doesn't end up showing what you need, could you attach a screenshot of what you're attempting to do?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arcade.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102996i75B5B8A4255AA573/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arcade.gif" alt="arcade.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 13:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/is-it-possible-to-hide-a-popup-based-on-attribute/m-p/1418683#M59041</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-05-03T13:14:26Z</dc:date>
    </item>
  </channel>
</rss>

