AnsweredAssumed Answered

don't show null attribute values in featureLayer popup with javascript api

Question asked by AGOL@CEC on May 29, 2015
Latest reply on Jun 4, 2015 by AGOL@CEC



I'm just creating a simple map to display one point dataset. When the user clicks on a point I want a popup to display, some of the attribute fields contain null values and ideally I don't want these fields to be included in the popup if the value of the attribute is null. I've tried to find the answer to this question and have come across a solution when using data coming from a queryTaskLayer but I'm looking to do this on a featureLayer. Any suggestions on how to do this with a featureLayer?