<?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 Re: How to use lowercase and dynamic image placement in popups in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070813#M73571</link>
    <description>&lt;P&gt;I have, yes, but I can't find any examples that really touch on what I'm looking to do. Thanks though.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 01:43:08 GMT</pubDate>
    <dc:creator>JRomeo</dc:creator>
    <dc:date>2021-06-22T01:43:08Z</dc:date>
    <item>
      <title>How to use lowercase and dynamic image placement in popups</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070228#M73554</link>
      <description>&lt;P&gt;Hi. I'd like to be able to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1) Reference a field name e.g., &lt;FONT face="courier new,courier"&gt;{speciesname}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2) Change its value to all lowercase e.g.,&amp;nbsp;rana muscosa&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3) Replace any whitespace with dashes e.g.,&amp;nbsp;rana-muscosa&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4) Use that value (e.g., rana-muscosa.png) to display an image in the content portion of a popup template embedded in a table cell of my choice. Here's an example, which won't work but describes the desired result.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; content: '&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;{speciesname}&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src="images/' + "{speciesname}".toLowerCase().replace(/\s+/g, '-') + '.png"&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 5) Can someone explain how to go about this? I've spent quite awhile in the docs and YT reviewing PopupTemplate and custom content reference and examples, to no avail. Thanks for any help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 20:12:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070228#M73554</guid>
      <dc:creator>JRomeo</dc:creator>
      <dc:date>2021-06-20T20:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use lowercase and dynamic image placement in popups</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070310#M73556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/494693"&gt;@JRomeo&lt;/a&gt;, have you tried looking into custom popup expressions with Arcade?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 06:35:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070310#M73556</guid>
      <dc:creator>DylanT_EsriCanada</dc:creator>
      <dc:date>2021-06-21T06:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use lowercase and dynamic image placement in popups</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070813#M73571</link>
      <description>&lt;P&gt;I have, yes, but I can't find any examples that really touch on what I'm looking to do. Thanks though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 01:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070813#M73571</guid>
      <dc:creator>JRomeo</dc:creator>
      <dc:date>2021-06-22T01:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use lowercase and dynamic image placement in popups</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070828#M73572</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/494693"&gt;@JRomeo&lt;/a&gt;&amp;nbsp;Have a look at the text functions for Arcade:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/text_functions/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Particularly:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;lower: makes your text lower case&lt;/LI&gt;&lt;LI&gt;trim: strips white space&lt;/LI&gt;&lt;LI&gt;concatenate: join up bits of text you make&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You'll probably need to play around with it a bit. If you have some starting code to post we could help troubleshoot?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 04:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-lowercase-and-dynamic-image-placement/m-p/1070828#M73572</guid>
      <dc:creator>Waffle_House</dc:creator>
      <dc:date>2021-06-22T04:46:44Z</dc:date>
    </item>
  </channel>
</rss>

