Select to view content in your preferred language

Text in pop up

137
2
02-11-2025 05:20 AM
Ainosez
Emerging Contributor

Hi, 

I am setting up popups in Map viewer and have entered text with different attribute expressions. I would like that text to appear only when certain conditions are met and other text to appear if they are not met.
For example, if the risk field is “Low”, I don't want any text.
If the risk field is not low, I want all the expressions I have created to appear.

Any ideas? I am not familiar with this kind of language.
Thanks

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

You can use Arcade to conditionally show text. Read through that blog and other articles (their links are at the bottom) about how to use it

Ainosez
Emerging Contributor

Thanks,  KenBuja

I've consulted quite a few links but I can't achieve my goal, I'm new to programming.

For the moment I have solved the problem with this expression :

(when(($feature["NRTOTAL"]) > 0.2, TextFormatting.NewLine +'Los riesgo a considerar son:',($feature["NRTOTAL"] ) <0.2 , "", ""))

 

0 Kudos