Select to view content in your preferred language

Hide Field with 'No Values' in the Attribute Dynamic Expression

699
2
04-26-2023 09:54 AM
Labels (1)
galiGIS
Emerging Contributor

Hi All 🙂

Is there any way to hide an empty field in the 'Attribute Dynamic Text'? 

Basically, I need to hide a the field name from the DDP if the filed has no values.  The screenshot below shows the issue as I need to keep ID field (has values) but need to hide Street as has no values.

DavidGallegoWSP_0-1682527848843.png

Please let me know if this is possible in HTML,

Thanks 🙂

 

0 Kudos
2 Replies
JeffHouser
Frequent Contributor

Not sure if the attached link will help?  

The brief answer is, when the string is empty, you can tell it to use any user-defined default text (or just make it blank; not sure if it would need a blank space as a sort of place holder or if it can be totally empty) by doing something like this (adjusted for your particular case, of course):

<dyn type="page" property="PageName_NW" emptyStr=""/>

https://desktop.arcgis.com/en/arcmap/latest/map/page-layouts/using-dynamic-text-with-data-driven-pag...

0 Kudos
galiGIS
Emerging Contributor

Thanks @JeffHouser  - I will have a look! 🙂

0 Kudos