<?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: Add progress bar value based on field to ArcGIS online Map in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145891#M1092</link>
    <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#text" target="_self"&gt;Text() function&lt;/A&gt; to convert other values to a string. However, it might be easier to just do your evaluation as a number.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IIF($feature.PercentCom == 25, 'background-color:#1987bb', 'background-color:#DDDDDD')&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 18 Feb 2022 22:58:46 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2022-02-18T22:58:46Z</dc:date>
    <item>
      <title>Add progress bar value based on field to ArcGIS online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145719#M1090</link>
      <description>&lt;P&gt;I am trying to add a progress bar to an ArcGIS online map, pretty much like the example from &lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/182422" target="_self"&gt;&lt;SPAN class=""&gt;MikeSchoelen.&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/arcgis-dashboards-blog/adding-a-progress-bar-to-an-indicator-with-a/ba-p/1133559" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-dashboards-blog/adding-a-progress-bar-to-an-indicator-with-a/ba-p/1133559&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have tried configuring the Custom Attribute Display in the maps Configure pop-up but I have been unsuccessful. I would appreciate any info on how to do this. I've been trying to do this in HTML but Arcade would be ok as well. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt;The progress element&amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;label for="file"&amp;gt;Downloading progress:&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;progress id="file" max="100" value="32"&amp;gt; 32% &amp;lt;/progress&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 18:04:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145719#M1090</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2022-02-18T18:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add progress bar value based on field to ArcGIS online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145816#M1091</link>
      <description>&lt;P&gt;I was able to accomplish this with the following but it only works for "Text" fields. My fields is a Long field.&lt;/P&gt;&lt;P&gt;How can change the Arcade code to accept the long field?&lt;/P&gt;&lt;P&gt;Arcade&lt;/P&gt;&lt;LI-CODE lang="python"&gt;IIF($feature.PercentCom == '25', 'background-color:#1987bb', 'background-color:#DDDDDD')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTML&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;lt;span&amp;gt;&amp;lt;b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Phase&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;table style=" border-collapse: separate; border-spacing: 6px 4px; width: 100%; table-layout: fixed;"&amp;gt;
  &amp;lt;tbody&amp;gt;&amp;lt;tr height="16"&amp;gt;
    &amp;lt;td style="{expression/expr0}"&amp;gt;&amp;lt;/td&amp;gt;
    &amp;lt;td style="{expression/expr1}"&amp;gt;&amp;lt;/td&amp;gt;
    &amp;lt;td style="{expression/expr2}"&amp;gt;&amp;lt;/td&amp;gt;
    &amp;lt;td style="{expression/expr3}"&amp;gt;&amp;lt;/td&amp;gt;
  &amp;lt;/tr&amp;gt;
  &amp;lt;tr height="24" style="text-align: center;"&amp;gt;
    &amp;lt;td&amp;gt;25%&amp;lt;/td&amp;gt;
    &amp;lt;td&amp;gt;50%&amp;lt;/td&amp;gt;
    &amp;lt;td&amp;gt;75%&amp;lt;/td&amp;gt;
    &amp;lt;td&amp;gt;100%&amp;lt;/td&amp;gt;
  &amp;lt;/tr&amp;gt;
&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 21:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145816#M1091</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2022-02-18T21:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add progress bar value based on field to ArcGIS online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145891#M1092</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#text" target="_self"&gt;Text() function&lt;/A&gt; to convert other values to a string. However, it might be easier to just do your evaluation as a number.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IIF($feature.PercentCom == 25, 'background-color:#1987bb', 'background-color:#DDDDDD')&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Feb 2022 22:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145891#M1092</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2022-02-18T22:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add progress bar value based on field to ArcGIS online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145903#M1093</link>
      <description>&lt;P&gt;I used the following. took me a while to figure out that ")" went after the $feature.percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IIF(Text($feature.percentage) == '25', 'background-color:#1987bb', 'background-color:#DDDDDD')&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 23:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/add-progress-bar-value-based-on-field-to-arcgis/m-p/1145903#M1093</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2022-02-18T23:43:50Z</dc:date>
    </item>
  </channel>
</rss>

