Attribute Expression - remove null value

1810
3
Jump to solution
05-15-2018 07:23 AM
PeteCoventry1
New Contributor

I’m trying to replicate the “Conditional Field Display” as wonderfully noted by Kelly Gerrow et al, https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-disp... with my particular dataset, but running into an issue – possibly with the field name??

 

Here are the steps I’ve taken:

 

Step 1. Create an Arcade Expression

 

IIF (isEmpty($feature[“Apt_link”]),””,”Description”)

(Instead of $feature.description format specified in the instructions, I'm using [" "]...could this be the problem??)

 

Step 2. Configure Customer Attribute Display

 

{ownername1

{expression/expr0}  {Description}

Both the expression/expr0 and Description are lined to the "Apt_link" field in my dataset.  

Here's a link to my webmap: 

http://arcg.is/10CLrz 

Any help would be greatly appreciated!!

Pete

0 Kudos
1 Solution

Accepted Solutions
PeteCoventry3
Occasional Contributor

Turns out that I had a space (" ") in my records causing the expression not to work correctly.  

Thanks to Kelly for all her help!!

View solution in original post

0 Kudos
3 Replies
KellyGerrow
Esri Frequent Contributor

Hi Pete,

What would you like the pop up to display? Do you want to display the value in a field or label a field?

-Kelly

0 Kudos
PeteCoventry1
New Contributor

Hi Kelly!

I'd like the popup to display "Apartment Link"  only when the url is available. "Apartment Link" would obviously be linked to the URL in my attribute table. 

Thanks!!

Pete

0 Kudos
PeteCoventry3
Occasional Contributor

Turns out that I had a space (" ") in my records causing the expression not to work correctly.  

Thanks to Kelly for all her help!!

0 Kudos