<?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: Pulldata(&amp;quot;@layer&amp;quot;) based on Dynamic List Input in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-quot-layer-quot-based-on-dynamic-list/m-p/1571675#M60645</link>
    <description>&lt;P&gt;My guess is that the pulldata is firing before the selection is made, which would make sense.&amp;nbsp; Try adding a relevant to the pulldata field of something like ${selection} != '' or string-length &amp;gt; 0.&amp;nbsp; That way it does not run the pulldata lookup until it has a value from the selection.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 14:26:35 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2024-12-30T14:26:35Z</dc:date>
    <item>
      <title>Pulldata("@layer") based on Dynamic List Input</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-quot-layer-quot-based-on-dynamic-list/m-p/1571506#M60642</link>
      <description>&lt;P&gt;Background: I'm creating a survey form using Connect. One of the questions relies on a pulldata calculation referencing a separate feature service. Respondents are instructed to first create a polygon feature in one survey, then find it by name in the survey I'm working on now.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've successfully created a dynamic list that accomplishes that using appearance &lt;TABLE width="159"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="159"&gt;autocomplete search('Plowshed_Name?url=&lt;A href="https://services2.arcgis.com/ZkOsbg84o8DsPPaP/arcgis/rest/services/service_846a043cc192441a9015bca8087c516b/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services2.arcgis.com/ZkOsbg84o8DsPPaP/arcgis/rest/services/service_846a043cc192441a9015bca8087c516b/FeatureServer/0&lt;/A&gt;')&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/LI&gt;&lt;LI&gt;I've successfully hardcoded one of those names to return a JSON to text field, then retrieved a separate parameter from &lt;EM&gt;that&lt;/EM&gt;&amp;nbsp;JSON:&lt;BR /&gt;&lt;TABLE width="159"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="159"&gt;pulldata("@layer","getRecord","&lt;A href="https://services2.arcgis.com/ZkOsbg84o8DsPPaP/ArcGIS/rest/services/service_846a043cc192441a9015bca8087c516b/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services2.arcgis.com/ZkOsbg84o8DsPPaP/ArcGIS/rest/services/service_846a043cc192441a9015bca8087c516b/FeatureServer/0&lt;/A&gt;","Plowshed_Name='110 Fourth Street South'")&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Problem: I can't get what I need using the dynamic list input, either the JSON using getRecord or the field value using getValue. Since I had success hardcoding the above and I'm hoping to query it for other attribute values, I'm mostly focused on using getRecord. I have the ${Plowshed_Name} as dynamic input using the appearance written above, which I pass through a text calculation ${Plowshed_name_string} made by&amp;nbsp;concat('"Plowshed_Name=',"'",${Plowshed_Name},"'",'"'). The output&amp;nbsp;&lt;EM&gt;exactly matches&amp;nbsp;&lt;/EM&gt;the value hardcoded to query the JSON in second bullet, single quotes, double quotes, and all.&lt;/P&gt;&lt;P&gt;The question using the dynamic input has blank value no matter what selection I make from the dropdown list.&amp;nbsp;The calculation in question reads:&lt;/P&gt;&lt;TABLE width="1425px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="1424.8px"&gt;pulldata("@layer","getRecord","&lt;A href="https://services2.arcgis.com/ZkOsbg84o8DsPPaP/ArcGIS/rest/services/service_846a043cc192441a9015bca8087c516b/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services2.arcgis.com/ZkOsbg84o8DsPPaP/ArcGIS/rest/services/service_846a043cc192441a9015bca8087c516b/FeatureServer/0&lt;/A&gt;",${Plowshed_name_string})&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've spent two days searching forums, referencing help articles, and interrogating copilot. I've tried adding custom JS scripts. What gives?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 17:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-quot-layer-quot-based-on-dynamic-list/m-p/1571506#M60642</guid>
      <dc:creator>DougKlimbal</dc:creator>
      <dc:date>2024-12-27T17:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata("@layer") based on Dynamic List Input</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-quot-layer-quot-based-on-dynamic-list/m-p/1571675#M60645</link>
      <description>&lt;P&gt;My guess is that the pulldata is firing before the selection is made, which would make sense.&amp;nbsp; Try adding a relevant to the pulldata field of something like ${selection} != '' or string-length &amp;gt; 0.&amp;nbsp; That way it does not run the pulldata lookup until it has a value from the selection.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 14:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-quot-layer-quot-based-on-dynamic-list/m-p/1571675#M60645</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-12-30T14:26:35Z</dc:date>
    </item>
  </channel>
</rss>

