AnsweredAssumed Answered

Hide values in infoWindow / Popup if value = null

Question asked by bryankaraffa on Apr 11, 2012
Latest reply on Sep 12, 2012 by norcalheidi
Hi all,

I have my popup working fine for my features.  When you click, it queries the featurelayer and gets the 3 attributes B_Name, B_Number, Departments.  Not every feature has a value for "Departments" and I want to "hide" it in the infowindow if it's null.

Example:
With value Departments not null B_Name = "Ellison" B_Number = "563" Departments = "Geography"  Infowindow should show (result): Building Name: Ellison Building #: 563 Department: Geography    With NO VALUE SET in "Department" attribute B_Name = "Phelps" B_Number = "492" Departments = ""   Infowindow should show (result): Building Name: Ellison Building #: 563


Not sure how to go about this.... hope y'all can help!

Outcomes