<?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 Can a popup template be defined in a FeatureLayer Service? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/can-a-popup-template-be-defined-in-a-featurelayer/m-p/1634194#M65609</link>
    <description>&lt;P&gt;Is it possible to configure a popup template on the FeatureLayer service itself so when the JS API is using the service it is defined, or must you always define it only in the JS?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jul 2025 14:10:08 GMT</pubDate>
    <dc:creator>joshk6656</dc:creator>
    <dc:date>2025-07-18T14:10:08Z</dc:date>
    <item>
      <title>Can a popup template be defined in a FeatureLayer Service?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-a-popup-template-be-defined-in-a-featurelayer/m-p/1634194#M65609</link>
      <description>&lt;P&gt;Is it possible to configure a popup template on the FeatureLayer service itself so when the JS API is using the service it is defined, or must you always define it only in the JS?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 14:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-a-popup-template-be-defined-in-a-featurelayer/m-p/1634194#M65609</guid>
      <dc:creator>joshk6656</dc:creator>
      <dc:date>2025-07-18T14:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can a popup template be defined in a FeatureLayer Service?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-a-popup-template-be-defined-in-a-featurelayer/m-p/1635242#M65682</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/553812"&gt;@joshk6656&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;Yes we highly suggest that you do this! This is the easiest way to configure a popup and consume it in other applications (such as a JS Maps SDK app). You can configure the popup on a feature layer item and then consume that popup in a JS SDK application by loading the feature layer from the portal item. Here's the steps to do so:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add the service as an item (or publish directly to ArcGIS Online):&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/add-item-from-url.htm" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/manage-data/add-item-from-url.htm&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Configure popups in Map Viewer on the layer item:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/create-maps/configure-pop-ups-mv.htm#ESRI_SECTION1_0505720B006E43C5B14837A353FFF9EC" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/create-maps/configure-pop-ups-mv.htm#ESRI_SECTION1_0505720B006E43C5B14837A353FFF9EC&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Once the popup is configured, note the item ID of the layer.&lt;/LI&gt;&lt;LI&gt;Take that item ID and create a FeatureLayer from a portal item in your JS Maps SDK application (be sure to expand the "See more" section:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 23:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-a-popup-template-be-defined-in-a-featurelayer/m-p/1635242#M65682</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2025-07-22T23:36:31Z</dc:date>
    </item>
  </channel>
</rss>

