<?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: Bolded strings within Arcade if – then--else expression in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273735#M51172</link>
    <description>&lt;P&gt;We upgraded to 10.9.1 about six weeks ago, so 11 is a long ways out.&lt;/P&gt;&lt;P&gt;And yes, the only data in the underlying FC that is used are the two fields needed for the &lt;EM&gt;if&lt;/EM&gt; part of the expression.&amp;nbsp; All the other strings are from an external text file that I cleaned up and dumped into Arcade.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 18:10:11 GMT</pubDate>
    <dc:creator>TychoGranville</dc:creator>
    <dc:date>2023-03-30T18:10:11Z</dc:date>
    <item>
      <title>Bolded strings within Arcade if – then--else expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273631#M51166</link>
      <description>&lt;P&gt;This was sort of answered in a different post (&lt;A href="https://wasco.maps.arcgis.com/apps/mapviewer/index.html?webmap=34526ccfe522427eaa11a3f38d159704" target="_blank" rel="noopener"&gt;Bold Text within Arcade Expression&lt;/A&gt;) but I need the&amp;nbsp;argument to be &lt;EM&gt;within&lt;/EM&gt; the&amp;nbsp;expression.&lt;BR /&gt;I have a giant if-then-else statement and I only want certain strings within that expression to be bolded. So&amp;nbsp;the&amp;nbsp; pop-up currently looks like (sans highlighting):&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/66797i68188A2411643823/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt; &lt;BR /&gt;&lt;BR /&gt;But I want (only) the strings that are highlighted in the screenshot to be bold.&amp;nbsp;(There are others in the pop-up (with varying positions), this is just the top of it)&lt;/P&gt;&lt;P&gt;Portion of the Arcade statement here for reference:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//Precinct 01
//01-01
if($feature.PRECINCT_T =='01'&amp;amp;&amp;amp;$feature.SPLIT_TXT=='01'){
return "01 West The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Federal Races"+TextFormatting.NewLine+TextFormatting.NewLine+"US Representative 2nd District"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Partisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Senate District 26"+TextFormatting.NewLine+TextFormatting.NewLine+"House District 52"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Nonpartisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Circuit Court District 07"+TextFormatting.NewLine+TextFormatting.NewLine+"District Attorney"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Elected Positions"+TextFormatting.NewLine+TextFormatting.NewLine+"City of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Soil &amp;amp; Water Conservation District"+TextFormatting.NewLine+TextFormatting.NewLine+"N W Co PUD Subdivision #3"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Community College"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge ESD Zone #4 - At Large"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Education Service District Zone 2"+TextFormatting.NewLine+TextFormatting.NewLine+"N Wasco County School District #21 Zone 4"+TextFormatting.NewLine+TextFormatting.NewLine+"Mid Columbia Fire and Rescue"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Library Service District"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Wasco County Parks &amp;amp; Recreation"+TextFormatting.NewLine+TextFormatting.NewLine+"Port of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Oregon Corrections"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County 4-H and Extension Service District"
}
//01.02
else if ($feature.PRECINCT_T =='01'&amp;amp;&amp;amp;$feature.SPLIT_TXT=='02') {
return "01 West The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+ "Federal Races"+TextFormatting.NewLine+TextFormatting.NewLine+"US Representative 2nd District"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Partisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Senate District 26"+TextFormatting.NewLine+TextFormatting.NewLine+"House District 52"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Nonpartisan"+TextFormatting.NewLine+TextFormatting.NewLine+"... etc, etc&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Is this doable or did I just paint myself into a corner?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tycho&lt;/P&gt;&lt;P&gt;(I'm doing this in the MapViewer on Arc Online, this will end up on an app on our own 10.9.1 Portal)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 16:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273631#M51166</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2023-03-30T16:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bolded strings within Arcade if – then--else expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273662#M51167</link>
      <description>&lt;P&gt;You can't really do this in a single expression in a text element. If 11.0 is on the horizon for you, the Arcade popup element makes this a breeze, but the text block doesn't respect HTML tags that occur within a string returned by Arcade.&lt;/P&gt;&lt;P&gt;Are you basically making a popup list of "attributes" based on other data in the feature?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 17:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273662#M51167</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-30T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bolded strings within Arcade if – then--else expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273735#M51172</link>
      <description>&lt;P&gt;We upgraded to 10.9.1 about six weeks ago, so 11 is a long ways out.&lt;/P&gt;&lt;P&gt;And yes, the only data in the underlying FC that is used are the two fields needed for the &lt;EM&gt;if&lt;/EM&gt; part of the expression.&amp;nbsp; All the other strings are from an external text file that I cleaned up and dumped into Arcade.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 18:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273735#M51172</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2023-03-30T18:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bolded strings within Arcade if – then--else expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273737#M51173</link>
      <description>&lt;P&gt;The only thing I can think of that might be helpful to you would be a Data Expression, but that would require the solution to be in a Dashboard.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 18:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/bolded-strings-within-arcade-if-then-else/m-p/1273737#M51173</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-30T18:11:34Z</dc:date>
    </item>
  </channel>
</rss>

