Select to view content in your preferred language

URL expression for when data is selected or not selected

304
2
03-06-2024 03:38 PM
Labels (1)
COwen
by
New Contributor II

Hi there,

I'm just creating some dynamic links based on which observation is selected in a list widget (see example below). How would this expression be adapted so that it still works if nothing is selected (i.e. it just adds "" to the URL)? Currently if nothing is selected, the URL is "https://experience.arcgis.com/cdn/2429/experience/" (completely different).

Expression_Field_screenshot.PNG

Thanks in advance 🙂

0 Kudos
2 Replies
ShengdiZhang
Esri Regular Contributor

Hi @COwen ,

You can check the "View for empty selection" option in the Data panel.

ShengdiZhang_0-1709775854809.png

Regards,

Shengdi

0 Kudos
COwen
by
New Contributor II

Hi Shengdi,

Thanks for your suggestion. That is definitely better/closer except it now includes a 'Name' value even though nothing is selected.

Thanks,

Caitlin

0 Kudos