<?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: Hide Button if no data in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1138374#M3603</link>
    <description>&lt;P&gt;I guess if I had a field that contained text useful as a button label that would work, but that isn't my situation.&amp;nbsp; And still, that doesn't really disable the button, which would be preferable.&lt;/P&gt;&lt;P&gt;If I could put some useful logic in that button Expression along the lines of:&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;IIf (IsEmpty(&lt;SPAN class=""&gt;$feature&lt;/SPAN&gt;.field1), "No Data", "Click Me")&lt;/STRONG&gt;&lt;/EM&gt;, where I'm using field1 to store a URL used by SetLink, that would be closer to useful.&amp;nbsp; But it looks like the Expression box won't take Arcade expressions(?).&lt;/P&gt;&lt;P&gt;My alternate solution was to leave the button as-is and instead set a default value for the field SetLink refers to.&amp;nbsp; This default value is a URL that points to a web page that displays a "No data for this feature" message.&amp;nbsp; So the button only functions meaningfully if the editor replaces the default value with a good URL.&amp;nbsp; In my case, the good URL points to a Survey123 form.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 15:33:53 GMT</pubDate>
    <dc:creator>JayJohnsonWashoeCounty</dc:creator>
    <dc:date>2022-01-28T15:33:53Z</dc:date>
    <item>
      <title>Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1136499#M3567</link>
      <description>&lt;P&gt;I'm using a BUTTON in ExpBuilder to reference a URL link in an attribute field for the selected feature.&amp;nbsp; If the field is BLANK (i.e. does not contain a hyperlink) I would like to either hide/disable the button OR display some alternate text (i.e. "No content for this feature").&amp;nbsp; Otherwise the button just doesn't do anything at all when the user clicks it, which could be confusing.&amp;nbsp; Any way to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 18:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1136499#M3567</guid>
      <dc:creator>JayJohnsonWashoeCounty</dc:creator>
      <dc:date>2022-01-24T18:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1136704#M3571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/303437"&gt;@JayJohnsonWashoeCounty&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;When you connect a button widget to a data source, you can also use Attribute or Expression for the button text.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShengdiZhang_0-1643076328524.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32170i59C38BD6A4F4ECEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShengdiZhang_0-1643076328524.png" alt="ShengdiZhang_0-1643076328524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can use the Expression and change the expression title to no data message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shengdi&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 02:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1136704#M3571</guid>
      <dc:creator>ShengdiZhang</dc:creator>
      <dc:date>2022-01-25T02:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1138374#M3603</link>
      <description>&lt;P&gt;I guess if I had a field that contained text useful as a button label that would work, but that isn't my situation.&amp;nbsp; And still, that doesn't really disable the button, which would be preferable.&lt;/P&gt;&lt;P&gt;If I could put some useful logic in that button Expression along the lines of:&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;IIf (IsEmpty(&lt;SPAN class=""&gt;$feature&lt;/SPAN&gt;.field1), "No Data", "Click Me")&lt;/STRONG&gt;&lt;/EM&gt;, where I'm using field1 to store a URL used by SetLink, that would be closer to useful.&amp;nbsp; But it looks like the Expression box won't take Arcade expressions(?).&lt;/P&gt;&lt;P&gt;My alternate solution was to leave the button as-is and instead set a default value for the field SetLink refers to.&amp;nbsp; This default value is a URL that points to a web page that displays a "No data for this feature" message.&amp;nbsp; So the button only functions meaningfully if the editor replaces the default value with a good URL.&amp;nbsp; In my case, the good URL points to a Survey123 form.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 15:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1138374#M3603</guid>
      <dc:creator>JayJohnsonWashoeCounty</dc:creator>
      <dc:date>2022-01-28T15:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1250773#M6079</link>
      <description>&lt;P&gt;It would be extremely helpful if there was an option here to also disable (gray out) the button if there is no data available.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 13:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1250773#M6079</guid>
      <dc:creator>AndyWells</dc:creator>
      <dc:date>2023-01-24T13:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1308726#M7629</link>
      <description>&lt;P&gt;Update. This is still a problem. I have a button that goes to an EXB window. I don't want to open that window if there is no active selection, because there will be no data to display in the window (and the format is too complicated to replace it all with an expression that has a default message for no data). I would love to restrict it so that there is always a selection, then the button could always open the window, but because of a different issue, the user can always simply click on the map which clears the selection, thus setting the selection to nothing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will put in an "idea" about it.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 18:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1308726#M7629</guid>
      <dc:creator>AndyWells</dc:creator>
      <dc:date>2023-07-17T18:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1550249#M15531</link>
      <description>&lt;P&gt;this is still an issue... come on, ESRI, roll those sleeves up. How is opening a new window the default behaviour when there's no data connected?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 04:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1550249#M15531</guid>
      <dc:creator>NseaGIS</dc:creator>
      <dc:date>2024-10-19T04:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1550253#M15533</link>
      <description>&lt;P&gt;I heard it said in a UC technical presentation&amp;nbsp;at the end during the questions section that Arcade would be integrated into ExB soon.&amp;nbsp; I am hoping that the conditional and formatting features of Arcade would give us what we need for this problem.&lt;/P&gt;&lt;P&gt;I have finally upgraded to the latest (1.15) version of Developer Edition and now have an up to date version of my workaround to share (attached).&amp;nbsp; It is a copy of Esri's Button widget where I added a separate (3rd) style in the settings for cases where there is no URL in the data (data value does not start with http).&amp;nbsp; It is specifically for use in a List widget, but could likely be tweaked for use outside of Lists.&amp;nbsp; I do not plan to upgrade it beyond v1.15.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 11:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1550253#M15533</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2024-10-19T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1571920#M16722</link>
      <description>&lt;P&gt;One potential (but not ideal) workaround we have tried is to use the list widget. The list widget does disappear if there is no data so essentially you put the button in the list to utilize this functionality.&lt;/P&gt;&lt;P&gt;The steps: Create a new table with fields just for the URLs and a key to connect it to the original table. Add a list widget and connect it to this new table's selected features. Include a button on the list entries and set the button settings as you would usually (open a window, go to URL, etc.). Use the list formatting/sizing options to hide all but the first list entry. Use the key field and actions to connect by selection the original table and the new table (the one with just the URLs that is in the list). Now when a user selects a feature, the button should only appear if there is corresponding data in the URL table. Otherwise, the list will show no data.&lt;/P&gt;&lt;P&gt;If you don't want the "no data" text to appear, you could either change the no data message text to just a space (still shows a caution sign) or you could also increase the size of the list and strategically use text boxes and layering to cover it up.&lt;/P&gt;&lt;P&gt;This workaround has its limitations and is admittedly cumbersome. It requires creating a whole new table and going through many formatting steps. But it could be a potential option until Arcade or something else is available to use in Experience Builder and&amp;nbsp;if you do not have Developer Edition.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 19:40:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1571920#M16722</guid>
      <dc:creator>SarahG1</dc:creator>
      <dc:date>2024-12-31T19:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1630894#M19800</link>
      <description>&lt;P&gt;Just in case anyone ends up here who missed this update, hiding the button is now possible with &lt;A href="https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/advanced-formatting.htm#:~:text=Dynamic%20styling%20lets%20you%20visually,connect%20the%20widget%20to%20data." target="_self"&gt;dynamic styling.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 22:34:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1630894#M19800</guid>
      <dc:creator>TaylorJosephy</dc:creator>
      <dc:date>2025-07-07T22:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Button if no data</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1648139#M20709</link>
      <description>&lt;P&gt;As of 9/4/2025, the dynamic styling is only available on AGOL.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 02:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/hide-button-if-no-data/m-p/1648139#M20709</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2025-09-05T02:08:35Z</dc:date>
    </item>
  </channel>
</rss>

