I have a form on Survey123 which collects point data along with other information. This data is put into a webmap which is displayed on a dashboard. When you click on the point in the map the popup shows all possible fields on the form. I would like to clean it up so that only the fields that were answered get displayed.
Hi Garrett, this kind of behavior may be possible through the web map via an Arcade expression.
Check out these posts
https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups
Can i eliminate empty values using arcade in my pop up?
There are also some introductory videos for Arcade if you are interested
Pump Up Your Pop-Ups with Arcade Expressions - YouTube
Getting to Know Arcade - YouTube
Thank you!
I will admit I have not written an Arcade Expression before.
I am running into an issue where I have gotten it to leave out null attributes but when there is data it now only lists the data and not the label in the popup. Here is what I am running into. The Numbers Below should say-"Reporters Phone Number"
My expression is:
IIF(isempty($feature["field_9"]),"",$feature["field_9"])
Table to display is:
Any help you can provide is helpful. Thank you
Try this in your second table row with expression/expr1:
<td><b> Reporters Phone Number: </b> {expression/expr1}</td>
I thought of that but then it puts it on every popup when the goal is to have it show up only if that point has that field.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.