[Portal 10.9.1] [Arcade expression]
Hello, i added this html code to customize the pop up windows in a Portal app :
<strong>Email : </strong><a href="mailto:{mail}">contact mail</a>

but i figured i had several blank fields (' ') in my Email column... so it result a link wich open outlook but with no email adress
So i tried to fix this with an Arcade expression but the result is not really what i need because it return a link even if the email field is null.
var mail = $feature.email;
if (mail == ' ') {
mail = 'no email adress';
}
return mail; I know the solution would be to create my link in an other Arcade expression but it seems i'm not able to find out the solution.
The thing i would like is using Arcade to return an hyperlink (mailto: for email) if field is not null
May someone help me with this please ?
Many thanks
Dave