I'm trying to use a field containing an email address in an anchor tag for a popup. I've tried
<a href="'mailto:' + {email1}">{email1}</a>
which appears as a link but doesn't work as a mailto:. I've tried various ways of escaping the inner quotes, like \' and \"
...anyone have a working email link like this is a popup? Thank you.
Solved! Go to Solution.
Matt,
I got it to work with this:
<a href="mailto:{NAME}">{NAME}</a>
Thank you once again Robert. It worked for me, although in my case it also opened a blank browser window also. I will try targeting options perhaps.
Matt,
I think esri working with popup links in the API code (not exposed to change) and always sets the target to blank.
I added
target="_top"
to the anchor tag and the pesky browser window no longer appears.
Thanks for replying and all your help Robert!
Matt,
Good to know the target and be overridden.