Select to view content in your preferred language

Disable link if field is null in Popup

3566
3
Jump to solution
06-05-2013 08:42 AM
MattPohl
Frequent Contributor
Has anyone been able to disable links in popups if the field is null? This can be found in Robert's eSearch widget and is very nice feature eliminating the confusion users have who are not familiar with the process when they try to click on a link and nothing happens. Possible enhancement to a future release?? Any help is appreciated.

Thanks,

Matt
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Notable Contributor
If using source code, that is fairly simple in the popuprendererskin.

see here:  http://forums.arcgis.com/threads/67874-Popup-3.0-hide-field-if-value-null?highlight=popup+hide+null

R_

View solution in original post

0 Kudos
3 Replies
RhettZufelt
MVP Notable Contributor
If using source code, that is fairly simple in the popuprendererskin.

see here:  http://forums.arcgis.com/threads/67874-Popup-3.0-hide-field-if-value-null?highlight=popup+hide+null

R_
0 Kudos
MattPohl
Frequent Contributor
Rzufelt-

Thanks for your replay. I was looking for an answered Thread on this but didn't see the one you referenced. I'll give it a shot. Thanks again.

Matt
0 Kudos
RhettZufelt
MVP Notable Contributor
Doesn't actualy "disable" the link, the thread shows how to not display that field in the popup window if the field is null so there will be no link to click on.

However, the this is the same place you would modify code if you wanted blank links to still show, but say something else.

Something similar to:

if !(formattedAttributes[fieldInfo.fieldName]){
   formattedAttributes[fieldInfo.fieldName] = " No Link Available"
  }



R_
0 Kudos