Select to view content in your preferred language

Button in List. Only show if attribute field is not null

1018
4
10-01-2022 07:42 PM
Marokapara
Frequent Contributor

Hi ExB community,

I'm putting a button in a list. The button will be connected to an attribute, so when the button is clicked, the url in the attribute field will open up in a new tab.

Sometimes this attribute field is filled out, sometimes it is empty. I only want the button to show when the field has been filled out.

Is this possible in Experience Builder? I thought about having a window pop-up saying no data available if the field isn't filled out, but I can't do that if I have it connected to a URL too.

Thanks in advance for your help.

Tags (3)
4 Replies
Marokapara
Frequent Contributor

@ShengdiZhang is this possible?

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @Marokapara ,

The style of the button widget is not controlled by the data, but I think you can use a text widget as an alternative.

Uses a text widget with a hyperlink, so when the field is empty, the text is empty and has no links, and when the field is filled out, the text displays clickable links.

Regards,

Shengdi

0 Kudos
NseaGIS
Occasional Contributor

the text alternative works but is ugly compared to a simple button that states what the link is. No progress here 2 years later?

ShengdiZhang
Esri Regular Contributor

Hi @Marokapara @NseaGIS 

The button widget supports dynamic style in the June 2025 AGOL release.

Currently, since visibility is not supported, the button cannot be set to invisible. However, you can use a transparent color as a workaround to set button styles.

ShengdiZhang_0-1751008491165.png

Regards,

Shengdi

0 Kudos