<?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: Pull multiple attributes from multiple overlapping layers in single popup in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1323000#M54173</link>
    <description>&lt;P&gt;Happy Monday, Ken, thank you for providing further guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a wonderful week &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 15:27:57 GMT</pubDate>
    <dc:creator>Ed_</dc:creator>
    <dc:date>2023-08-28T15:27:57Z</dc:date>
    <item>
      <title>Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321677#M54082</link>
      <description>&lt;P&gt;I have three layers, two of them are polygons (parcels and buildings) and one of them is a point. I would like the parcel's popup to return multiple attributes/columns from the building layer as well as the point layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the code below, I am able to show a single corresponding attribute from the building layer when a parcel is clicked.&lt;/P&gt;&lt;P&gt;But now I want to return more attributes from the building layer as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;BR /&gt;&lt;BR /&gt;Like let's say I also want return values from the columns `LenFt` and `ID` then how can I do that?&lt;/P&gt;&lt;P&gt;Side question: Also is there a way to add contextual text before the attribute value in the Arcade code?&lt;/P&gt;&lt;P&gt;Like let's say I want to add bold `Area:`, `Length:` and `ID:` before each of the returned attribute value.&lt;/P&gt;&lt;P&gt;Attributes of interest from the building layer:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_0-1692803933589.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78932iF23D9344435E904A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_0-1692803933589.png" alt="SaadullahBaloch_0-1692803933589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Create a variable that the FeatureSet of intersecting feature attributes  
var building = FeatureSetByName($map, "BuildingFootprints_Clip")

var intersectLayer = Intersects(building, $feature)  

for (var f in intersectLayer){ 
	
	var popup = f.AREAFT
	
	}  
 
 return popup&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 15:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321677#M54082</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-23T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321682#M54084</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1021"&gt;@KellyGerrow&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/386723"&gt;@HeatherSmith&lt;/a&gt;&amp;nbsp;can you please help with this?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 15:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321682#M54084</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-23T15:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321696#M54085</link>
      <description>&lt;P&gt;Here's one way to do that. This uses&lt;A href="https://developers.arcgis.com/arcade/guide/template-literals/" target="_self"&gt; template literals&lt;/A&gt;, including a carriage return at the end for multiple buildings getting returned.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var building = FeatureSetByName($map, "BuildingFootprints_Clip")
var intersectLayer = Intersects(building, $feature)  
var popup;
for (var f in intersectLayer){ 
  var popup += `Area: ${f.AREAFT}, Length: ${f.LenFt}, ID: ${f.ID}
`
}  
return popup;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 15:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321696#M54085</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-23T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321733#M54086</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;thank you so much for the quick response. Arcade is giving me an error with `+=`&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Test execution error: Unexpected token '+='.. Verify test data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 16:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321733#M54086</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-23T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321745#M54087</link>
      <description>&lt;P&gt;The code works fine if I replace `+=` with `=`.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Area: 3376, Length: 3376, ID: 0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please tell me how I get the output such that each subsequent attribute value is in a new line like shown below?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Area: 3376

Length: 3376

ID: 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 16:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321745#M54087</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-23T16:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321753#M54089</link>
      <description>&lt;P&gt;No worries, I was able to get the attribute value in a separate line using the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var popup = `Area: ${f.AREAFT} \n Length: ${f.LENFT} \n ID: ${f.ID}`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 16:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321753#M54089</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-23T16:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321761#M54091</link>
      <description>&lt;P&gt;This will put everything on its own line. The error you were getting was due to "var" on line 5. I forgot to edit that out when updating it for multiple buildings on a parcel.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var building = FeatureSetByName($map, "BuildingFootprints_Clip")
var intersectLayer = Intersects(building, $feature)  
var popup;
for (var f in intersectLayer){ 
  popup += `Area: ${f.AREAFT}
Length: ${f.LenFt}
ID: ${f.ID}
`
}  
return popup;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If you want an extra line between each, you can easily do that&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;for (var f in intersectLayer){ 
  popup += `Area: ${f.AREAFT}

Length: ${f.LenFt}

ID: ${f.ID}
`
}  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 17:04:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321761#M54091</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-23T17:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321895#M54106</link>
      <description>&lt;P&gt;Oh thank you so much, that's so cool and much easier than what I did. One last question please, is there a way to make a the text including the colon bold before the attribute value bold?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 20:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321895#M54106</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-23T20:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321903#M54109</link>
      <description>&lt;P&gt;Yes, but you have to use an &lt;A href="https://doc.arcgis.com/en/arcgis-online/create-maps/configure-pop-ups-mv.htm#ESRI_SECTION1_F5CB09E0313A4DA1BD10F18D875FFC3F" target="_self"&gt;Arcade element&lt;/A&gt; in your popup. Your code would look something like this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var building = FeatureSetByName($map, "BuildingFootprints_Clip")
var intersectLayer = Intersects(building, $feature)  
var popup;
for (var f in intersectLayer){ 
  popup += `&amp;lt;b&amp;gt;Area:&amp;lt;/b&amp;gt; ${f.AREAFT}
&amp;lt;b&amp;gt;Length:&amp;lt;/b&amp;gt; ${f.LenFt}
&amp;lt;b&amp;gt;ID:&amp;lt;/b&amp;gt; ${f.ID}
`
} 

return { 
  type : 'text', 
  text : popup
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 20:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321903#M54109</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-23T20:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321937#M54113</link>
      <description>&lt;P&gt;Bro you are awesome &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 21:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1321937#M54113</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-23T21:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322388#M54135</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp; the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt; &amp;lt;b. &amp;lt;/b&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;formatting is not working any clues?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_0-1692921878746.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79113iF26085241A49D8CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_0-1692921878746.png" alt="SaadullahBaloch_0-1692921878746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_1-1692921947164.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79114i65401FCAFC53E35A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_1-1692921947164.png" alt="SaadullahBaloch_1-1692921947164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Whereas I would like the input to look to something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Area:&amp;nbsp;&lt;/STRONG&gt;6682&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Lentgh:&amp;nbsp;&lt;/STRONG&gt;6682&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID:&lt;/STRONG&gt; 0&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 00:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322388#M54135</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-25T00:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322501#M54144</link>
      <description>&lt;P&gt;Are you putting this in Arcade element?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arcade1.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79138iF657240C145475C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arcade1.png" alt="arcade1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arcade2.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79139iD27D41C56BF0BE98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arcade2.png" alt="arcade2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arcade3.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79140iA8CE2CDF5FCF8D78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arcade3.png" alt="arcade3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 13:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322501#M54144</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-25T13:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322565#M54151</link>
      <description>&lt;P&gt;Happy Friday Ken, so, I should put the entire code in Arcade element and not in expressions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 16:04:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322565#M54151</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-25T16:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322567#M54152</link>
      <description>&lt;P&gt;If you want to include HTML code, you'll have to use an Arcade element.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 16:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322567#M54152</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-25T16:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322617#M54155</link>
      <description>&lt;P&gt;Oh I see thanks Ken, then can I use Arcade element in the text box similar to how you embed Arcade Expressions in the text box?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 17:48:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322617#M54155</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-25T17:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322619#M54156</link>
      <description>&lt;P&gt;What is the final goal? What do you want your popup to look like?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 17:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322619#M54156</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-25T17:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322626#M54157</link>
      <description>&lt;P&gt;A regular popup with attributes from multiple intersected layers in a single popup. And then separate each layer,'s attribute with a bold subheading or something. So I don't know what would be a better method an Arcade element or embedding Arcade Expressions in a text box.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 18:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322626#M54157</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-25T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322629#M54158</link>
      <description>&lt;P&gt;You could do a combination of text boxes and Arcade elements. The only drawback is you'll have a space between them. You can use the text box with expressions if you want to use the same HTML formatting for everything in an expression. If you want to have an expression to have different HTML formats in the same output, you'd have to use an Arcade element.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 18:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322629#M54158</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-25T18:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322691#M54161</link>
      <description>&lt;P&gt;So Ken, I was able to get the text bolded as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_0-1692995156846.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79188iEDC060933E8FBA82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_0-1692995156846.png" alt="SaadullahBaloch_0-1692995156846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the attributes are not appearing in the next line. I also tried using /n but that did not work either.&lt;/P&gt;&lt;P&gt;Code for that:&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;LI-CODE lang="c"&gt;// Create a variable that the FeatureSet of intersecting feature attributes  
var building = FeatureSetByName($map, "BuildingFootprints_Clip")

var intersectLayer = Intersects(building, $feature)  

var popup;

for (var f in intersectLayer){ 
  var popup = `&amp;lt;b&amp;gt;Area:&amp;lt;/b&amp;gt; ${f.AREAFT} 

  
  &amp;lt;b&amp;gt;Length:&amp;lt;/b&amp;gt; ${f.LENFT} 
  
  
  &amp;lt;b&amp;gt;ID:&amp;lt;/b&amp;gt; ${f.ID}
`
}  



return {
  
  type : 'text',
  text : popup
}&lt;/LI-CODE&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;Also you will notice in another code below that I have tried to add two headings&amp;nbsp; one before the attributes and the another heading for the next layer's attributes. But, for some reason the output only shows the Points heading and nothing else.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_1-1692995789209.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79189i0F0D5FAD8D0CDEC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_1-1692995789209.png" alt="SaadullahBaloch_1-1692995789209.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Code for that:&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;LI-CODE lang="c"&gt;// Create a variable that the FeatureSet of intersecting feature attributes  
var building = FeatureSetByName($map, "BuildingFootprints_Clip")

var intersectLayer = Intersects(building, $feature)  

var popup;

for (var f in intersectLayer){ 
  var popup = `&amp;lt;b&amp;gt;Area:&amp;lt;/b&amp;gt; ${f.AREAFT} 

  
  &amp;lt;b&amp;gt;Length:&amp;lt;/b&amp;gt; ${f.LENFT} 
  
  
  &amp;lt;b&amp;gt;ID:&amp;lt;/b&amp;gt; ${f.ID}
`
}  



return {
  
  type : 'text',
  text : '&amp;lt;h2&amp;gt;Building&amp;lt;/h2&amp;gt;',

  type : 'text',
  text : popup,

  type : 'text',
  text : '&amp;lt;h2&amp;gt;Points&amp;lt;/h2&amp;gt;',
}

// Now bring in the attributes from the next intersected layer with Parcel&lt;/LI-CODE&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;I know I can use the the Text box&amp;nbsp; to add the headings but like you said then there would be a space between the text box heading and the Arcade Element which may or may not be ideal.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322691#M54161</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-25T20:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple attributes from multiple overlapping layers in single popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322694#M54162</link>
      <description>&lt;P&gt;Ken, I got the line breaks fixed by adding &amp;lt;br&amp;gt; next to each attribute but I am still stuck with adding the headings. Also as you can see the line breaks don't look ideal as the line breaks are too closely spaced. And I am not sure how to increase/adjust the line spacing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_2-1692996481089.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79191iCBEEEED3C055F67A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_2-1692996481089.png" alt="SaadullahBaloch_2-1692996481089.png" /&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;LI-CODE lang="c"&gt;&amp;lt;b&amp;gt;Area:&amp;lt;/b&amp;gt; ${f.AREAFT} &amp;lt;br&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-multiple-attributes-from-multiple-overlapping/m-p/1322694#M54162</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-25T20:48:27Z</dc:date>
    </item>
  </channel>
</rss>

