I'd like to only display records that have a value, in this instance, a comment while hiding Null values in a list. Is there a way to do that with advanced formatting or another solution?
@jcarlson
@JohannesLindner
@JenniferAcunto
If the entire line of your List template is blank, it will omit the space entirely. The easiest way is to make the "Comments:" text part of the output itself.
var comments = Iif( IsEmpty($datapoint['Comments'], '', `Comments: ${$datapoint['Comments']}` } ... return { attributes: { comments } }
Then put {expression/comments} on its own line in the template. Should be what you want.
@jcarlson thank you!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.