<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic custom expression in a popup in web map for a mailto function in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/custom-expression-in-a-popup-in-web-map-for-a/m-p/1320988#M54052</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'm trying to create a custom expression in a popup in web map for a mailto function.&lt;/P&gt;&lt;P&gt;the mailto function is working fine in the web app (created in web app builder) but i would like to add a bold red color to a field in the email body:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var recipient =&amp;nbsp; &lt;A href="mailto:123@gmail.com" target="_blank" rel="noopener"&gt;123@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var subject = "test email"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var body =&amp;nbsp; "Location: " + $feature["LOCATION"] +&amp;nbsp;TextFormatting.NewLine + "Phone: " + $feature["phone_number"]&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var mailtolink = Concatenate(&lt;A href="mailto:" target="_blank" rel="noopener"&gt;mailto:&lt;/A&gt;, recipient, "?subject=", URLEncode(subject), "&amp;amp;body=", URLEncode(body));&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;return mailtolink&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when&amp;nbsp; a user click the mailto link in a popup. i would like the email body looks like this in outlook:&lt;/P&gt;&lt;P&gt;Location: &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;California&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Phone:&lt;FONT color="#FF0000"&gt; &lt;STRONG&gt;&lt;SPAN&gt;123-555-8888&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how can i insert the color and bold text properties?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried &amp;lt;br&amp;gt; html code in the expression but it didn't&amp;nbsp;work&amp;nbsp; : (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;W&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 01:18:02 GMT</pubDate>
    <dc:creator>WilsonLee</dc:creator>
    <dc:date>2023-08-22T01:18:02Z</dc:date>
    <item>
      <title>custom expression in a popup in web map for a mailto function</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-expression-in-a-popup-in-web-map-for-a/m-p/1320988#M54052</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'm trying to create a custom expression in a popup in web map for a mailto function.&lt;/P&gt;&lt;P&gt;the mailto function is working fine in the web app (created in web app builder) but i would like to add a bold red color to a field in the email body:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var recipient =&amp;nbsp; &lt;A href="mailto:123@gmail.com" target="_blank" rel="noopener"&gt;123@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var subject = "test email"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var body =&amp;nbsp; "Location: " + $feature["LOCATION"] +&amp;nbsp;TextFormatting.NewLine + "Phone: " + $feature["phone_number"]&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;var mailtolink = Concatenate(&lt;A href="mailto:" target="_blank" rel="noopener"&gt;mailto:&lt;/A&gt;, recipient, "?subject=", URLEncode(subject), "&amp;amp;body=", URLEncode(body));&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;return mailtolink&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when&amp;nbsp; a user click the mailto link in a popup. i would like the email body looks like this in outlook:&lt;/P&gt;&lt;P&gt;Location: &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;California&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Phone:&lt;FONT color="#FF0000"&gt; &lt;STRONG&gt;&lt;SPAN&gt;123-555-8888&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how can i insert the color and bold text properties?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried &amp;lt;br&amp;gt; html code in the expression but it didn't&amp;nbsp;work&amp;nbsp; : (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;W&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 01:18:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-expression-in-a-popup-in-web-map-for-a/m-p/1320988#M54052</guid>
      <dc:creator>WilsonLee</dc:creator>
      <dc:date>2023-08-22T01:18:02Z</dc:date>
    </item>
  </channel>
</rss>

