Null values in identify / pop ups

303
3
11-29-2017 04:51 AM
AliBarakat
Occasional Contributor II

Hello,

I am using Web App Builder developer edition 2.5

in the identify widget (or query or search or any widget that might lead to showing pop ups) i want to hide the fields if it has a null value.

I don't want to permanently remove it, i just want to hide it when it is a null value.

I ready many threads on Geonet, but unfortunately i couldn't fix it.

Anyone has an idea on how to do that?

Tagging Robert Scheitlin, GISP‌ I am sure you have the answer  

Thank you  

3 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Ali,

   I know how to do this for individual widget (I do this in my eSearch widget) but I can not think of a way to do this for all popups n general.

AliBarakat
Occasional Contributor II

Thank you Robert!

Maybe i can use the code in the identify widget as a start.

Can you please share with me the code that you used

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Ali,

   The widget is the eSearch widget Not the Identify (my identify replace a null attribute with an empty string). The code is pretty complicated in the eSearch as I am doing so many things with the data. Search the Widget.js for "lyrHideNullValues"