<?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: ARCGIS ONLINE pop-up  in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209732#M10350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the update to this blog that outlines a strategy to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups?sr=search&amp;amp;searchId=ca75e977-b229-4397-b21e-4e3498edc833&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups?sr=search&amp;amp;searchId=ca75e977-b229-4397-b21e-4e3498edc833&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;You can do this using similar logic. Here is an example I made classifying Earthquake magnitudes by colour. (It's not a stellar cartographic example, but you should be able to find the different classifications.)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;App:&amp;nbsp;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwebapps.maps.arcgis.com%2Fapps%2FMinimalist%2Findex.html%3Fappid%3D5789741c078f4464a4657ae77e81fc28" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://webapps.maps.arcgis.com/apps/Minimalist/index.html?appid=5789741c078f4464a4657ae77e81fc28&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Web Map:&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com%2Fhome%2Fwebmap%2Fviewer.html%3Fwebmap%3D7cf2c86a661f45d29c29a568164bbaa1" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://www.arcgis.com/home/webmap/viewer.html?webmap=7cf2c86a661f45d29c29a568164bbaa1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I made 6 expressions for each classification, similar to which returns the value of moderate if the magnitude is greater than 5 and less than 6 and returns nothing if the expression doesn't apply:&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;IIf($feature.mag &amp;gt;= 5.0 &amp;amp;&amp;amp; $feature.mag &amp;lt; 6, "Moderate", "")&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;When configuring the pop up, include all of the expressions in different colours. The correct expression will display for the mag value.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" height="439" src="https://community.esri.com/legacyfs/online/380324_colours.jpg" style="border: 0px; font-weight: inherit; margin: 2px 0px 0px;" width="721" /&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;For your specific example try creating expressions for each status then colour code each response in the pop up.:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;IIf($feature.completed ==&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-weight: inherit;"&gt;&amp;nbsp;"under construction", &amp;nbsp;"under construction", "")&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Farcade%2Ffunction-reference%2Flogical_functions%2F%23iif" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;Logical Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2017 22:30:16 GMT</pubDate>
    <dc:creator>KellyGerrow</dc:creator>
    <dc:date>2017-10-17T22:30:16Z</dc:date>
    <item>
      <title>ARCGIS ONLINE pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209731#M10349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pop-up configuration‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I’m configuring a ‘Custom Attribute Display’ pop-up that uses an expression to define part of the code. A snip of the code for the custom pop-up looks like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Application:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;{expression/expr0}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And the expression looks like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var avail = $feature["GIS_DB.dbo.CharterPullComplete.SpaceAvail"];&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var apply='&amp;lt;a href=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fschooloptions.mnps.org%2F" rel="nofollow" target="_blank"&gt;https://schooloptions.mnps.org/&lt;/A&gt;&lt;SPAN&gt;&amp;gt;Apply Now&amp;lt;/a&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var sorry='&amp;lt;div style="color:red;"&amp;gt;Not taking applications&amp;lt;/div&amp;gt;'&lt;/P&gt;&lt;P&gt;When(avail=='Green', apply,avail=='Yellow', apply, sorry);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My intent was that my pop-up, depending on which condition was met would look like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Application:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://schooloptions.mnps.org/"&gt;Apply Now&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Application:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: red;"&gt;Not taking applications&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But instead it looks like:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Application:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fschooloptions.mnps.org%2F" rel="nofollow" target="_blank"&gt;https://schooloptions.mnps.org/&lt;/A&gt;&lt;SPAN&gt;&amp;gt;Apply Now&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Application:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div style="color:red;"&amp;gt;Not taking applications&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to specify that the string that is returned by the expression is code?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...Nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209731#M10349</guid>
      <dc:creator>NathanWood2</dc:creator>
      <dc:date>2017-10-12T15:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: ARCGIS ONLINE pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209732#M10350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the update to this blog that outlines a strategy to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups?sr=search&amp;amp;searchId=ca75e977-b229-4397-b21e-4e3498edc833&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups?sr=search&amp;amp;searchId=ca75e977-b229-4397-b21e-4e3498edc833&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;You can do this using similar logic. Here is an example I made classifying Earthquake magnitudes by colour. (It's not a stellar cartographic example, but you should be able to find the different classifications.)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;App:&amp;nbsp;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwebapps.maps.arcgis.com%2Fapps%2FMinimalist%2Findex.html%3Fappid%3D5789741c078f4464a4657ae77e81fc28" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://webapps.maps.arcgis.com/apps/Minimalist/index.html?appid=5789741c078f4464a4657ae77e81fc28&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Web Map:&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com%2Fhome%2Fwebmap%2Fviewer.html%3Fwebmap%3D7cf2c86a661f45d29c29a568164bbaa1" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://www.arcgis.com/home/webmap/viewer.html?webmap=7cf2c86a661f45d29c29a568164bbaa1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I made 6 expressions for each classification, similar to which returns the value of moderate if the magnitude is greater than 5 and less than 6 and returns nothing if the expression doesn't apply:&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;IIf($feature.mag &amp;gt;= 5.0 &amp;amp;&amp;amp; $feature.mag &amp;lt; 6, "Moderate", "")&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;When configuring the pop up, include all of the expressions in different colours. The correct expression will display for the mag value.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" height="439" src="https://community.esri.com/legacyfs/online/380324_colours.jpg" style="border: 0px; font-weight: inherit; margin: 2px 0px 0px;" width="721" /&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;For your specific example try creating expressions for each status then colour code each response in the pop up.:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;IIf($feature.completed ==&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-weight: inherit;"&gt;&amp;nbsp;"under construction", &amp;nbsp;"under construction", "")&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Farcade%2Ffunction-reference%2Flogical_functions%2F%23iif" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;Logical Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 22:30:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209732#M10350</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2017-10-17T22:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: ARCGIS ONLINE pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209733#M10351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Kelly. That worked perfectly. It was not as straightforward as the way I originally thought, but it worked, and also gave me some ideas on other ways I could enhance the experience for the user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/380866_maps.PNG" style="width: 620px; height: 256px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up creating an expression for the URL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var avail = $feature["GIS_DB.dbo.CharterPullComplete.SpaceAvail"];&lt;BR /&gt;&lt;SPAN&gt;var url='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Foptions.mnps.org%2F" rel="nofollow" target="_blank"&gt;https://options.mnps.org/&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;BR /&gt;var blank=''&lt;BR /&gt;When(avail=='Green', url,avail=='Yellow', url, blank);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then one for the link and one for the label, each based on whether the URL was blank or not and showed the link and label based on that criteria in the pop-up. Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 14:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209733#M10351</guid>
      <dc:creator>JackHawkins</dc:creator>
      <dc:date>2017-10-20T14:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: ARCGIS ONLINE pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209734#M10352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jack, please remember to mark an answer (Kelly's) as correct so this thread can be closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 17:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-pop-up/m-p/209734#M10352</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-10-23T17:16:02Z</dc:date>
    </item>
  </channel>
</rss>

