<?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: Pulling Geometry from Feature Layer into Forms (S123 Connect) in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1574388#M60791</link>
    <description>&lt;P&gt;You probably want to use pulldata's&amp;nbsp;&lt;FONT face="courier new,courier"&gt;@layer&lt;/FONT&gt; mode, &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-layer/ba-p/1224415" target="_self"&gt;this post&lt;/A&gt; should cover everything you need to know.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 16:45:52 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2025-01-10T16:45:52Z</dc:date>
    <item>
      <title>Pulling Geometry from Feature Layer into Forms (S123 Connect)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1574343#M60785</link>
      <description>&lt;P&gt;Hi folks&lt;/P&gt;&lt;P&gt;I'm in Survey123 Connect and need to display a geometry from a feature layer in Forms - that reflects a user selected ID&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current code is this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LiamBirkett_0-1736520801479.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123109iA905B7BACD56E305/image-size/large?v=v2&amp;amp;px=999" role="button" title="LiamBirkett_0-1736520801479.png" alt="LiamBirkett_0-1736520801479.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've ensured the feature layer its trying to pull data from sits within the correct webmap in &lt;EM&gt;Linked Content&lt;/EM&gt; but afraid nothing is pulling through&lt;/P&gt;&lt;P&gt;Any help or thoughts hugely appreciated&lt;/P&gt;&lt;P&gt;Many thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;*Please note I'd removed the real feature layer URL to fit the code on screen&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 14:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1574343#M60785</guid>
      <dc:creator>LiamBirkett</dc:creator>
      <dc:date>2025-01-10T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Geometry from Feature Layer into Forms (S123 Connect)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1574382#M60790</link>
      <description>&lt;P&gt;Have you seen this blog post: &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-lines-and-polygons/ba-p/897415" target="_self"&gt;Survey123 Tricks of the Trade: Lines and Polygons&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Scroll down to&lt;STRONG&gt; Geotrace and geoshape in the Survey123 field app Inbox&lt;/STRONG&gt;. I am thinking that is what you are looking for?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 16:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1574382#M60790</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2025-01-10T16:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Geometry from Feature Layer into Forms (S123 Connect)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1574388#M60791</link>
      <description>&lt;P&gt;You probably want to use pulldata's&amp;nbsp;&lt;FONT face="courier new,courier"&gt;@layer&lt;/FONT&gt; mode, &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-layer/ba-p/1224415" target="_self"&gt;this post&lt;/A&gt; should cover everything you need to know.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 16:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1574388#M60791</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-01-10T16:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Geometry from Feature Layer into Forms (S123 Connect)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1576732#M60864</link>
      <description>&lt;P&gt;Thanks guys, afraid it may need something more complex as looking to pull through the feature based on a dynamic user-selection ID. I've dabbled with a script to see i that could work, also afraid to no avail &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am I over-complicating this?&lt;/P&gt;&lt;P&gt;// save this as getGeometry.js&lt;/P&gt;&lt;P&gt;function getGeometry(selectedValue) {&lt;/P&gt;&lt;P&gt;var featureLayerUrl = '&amp;lt;URL&amp;gt;';&lt;/P&gt;&lt;P&gt;var query = {&lt;/P&gt;&lt;P&gt;where: "ID='" + selectedValue + "'",&lt;/P&gt;&lt;P&gt;outFields: ['*'],&lt;/P&gt;&lt;P&gt;returnGeometry: true,&lt;/P&gt;&lt;P&gt;f: 'json'&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;return new Promise(function(resolve, reject) {&lt;/P&gt;&lt;P&gt;fetch(featureLayerUrl + '/query?' + new URLSearchParams(query))&lt;/P&gt;&lt;P&gt;.then(response =&amp;gt; response.json())&lt;/P&gt;&lt;P&gt;.then(data =&amp;gt; {&lt;/P&gt;&lt;P&gt;if (data.features &amp;amp;&amp;amp; data.features.length &amp;gt; 0) {&lt;/P&gt;&lt;P&gt;resolve(data.features[0].geometry);&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;reject('No features found');&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;})&lt;/P&gt;&lt;P&gt;.catch(error =&amp;gt; reject(error));&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 08:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulling-geometry-from-feature-layer-into-forms/m-p/1576732#M60864</guid>
      <dc:creator>LiamBirkett</dc:creator>
      <dc:date>2025-01-17T08:37:01Z</dc:date>
    </item>
  </channel>
</rss>

