<?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 to autocomplete from another layer in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527257#M58714</link>
    <description>&lt;P&gt;Thanks!&amp;nbsp; I think you simply have a couple syntax errors in your pulldata calculation.&amp;nbsp; When referencing a survey question/value, use the ${name} syntax.&amp;nbsp; When referencing the field in your service, use "attributes.fieldName".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Replace &lt;STRONG&gt;"${count_crops}"&lt;/STRONG&gt; in your pulldata calc with (case sensitive) &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;attributes.count_crops"&lt;/STRONG&gt; -&lt;/P&gt;&lt;P&gt;and for the farm_id query, see the pulldata&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-layer/ba-p/1224415#:~:text=concat()%20is%20your,solution%20here." target="_self"&gt;tips on concat and SQL here&lt;/A&gt; and some of the &lt;A href="http://Request%20parameters" target="_self"&gt;examples for request parameters&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are also many great Samples to review in Survey123 Connect; "Multiple Choice Questions" may be of interest to you!&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2024 16:03:11 GMT</pubDate>
    <dc:creator>ToddW_stl</dc:creator>
    <dc:date>2024-08-26T16:03:11Z</dc:date>
    <item>
      <title>Pulldata to autocomplete from another layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527138#M58707</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have two surveys created in Survey123 where one will be completed first, and only after that, the second one will be launched. What I intend to do is have a repeat with the number of repeats determined based on a multiple-choice response from the first survey.&lt;/P&gt;&lt;P&gt;I understand that with the repeat count, it's possible to set a fixed number of repeats by asking a question beforehand. However, what I couldn't manage was configuring this question using the pulldata function with the URL of the first survey—it always returns an error. The message I receive is: "There has been a problem trying to replace ${…..} with the XPath to the survey element named. There is no survey element with this name."&lt;/P&gt;&lt;P&gt;Does the pulldata function have an issue with retrieving information from a feature layer (hosted) ? Would I need to create a script for these types of conditions?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 14:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527138#M58707</guid>
      <dc:creator>agroges362</dc:creator>
      <dc:date>2024-08-26T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata to autocomplete from another layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527183#M58712</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/480961"&gt;@agroges362&lt;/a&gt;&amp;nbsp;- Can you share your XLSForm(s)?&amp;nbsp; &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_1FC4AD92333B4039A2D71BC293D356AA" target="_self"&gt;According to the docs&lt;/A&gt;, you&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; be able to use a calculation (pulldata) to set the repeat count. You may not have meant this when you wrote "&lt;SPAN&gt;pulldata function with the URL of the first survey"&lt;/SPAN&gt;, but ensure you're pulling data from the FeatureServer.&amp;nbsp; I'd also check that the pulldata is returning a numeric value from a numeric fieldtype and that submission url is correct and accurate in the settings tab of the &lt;U&gt;second&lt;/U&gt; survey if you're calculating a count from repeat records in the&amp;nbsp;&lt;U&gt;first&lt;/U&gt; survey.&amp;nbsp; You should be able to use the &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#:~:text=count%2Dselected(question)" target="_self"&gt;count-selected&lt;/A&gt; formula in both to return an integer.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 15:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527183#M58712</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2024-08-26T15:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata to autocomplete from another layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527241#M58713</link>
      <description>&lt;P&gt;the 'repeats funcion_test' is from survey nr 1 and the 'Part II_test_repeatsFunction' is from survey nr 2.&amp;nbsp; I've checked the field types from both and seems to be correct.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 15:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527241#M58713</guid>
      <dc:creator>agroges362</dc:creator>
      <dc:date>2024-08-26T15:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata to autocomplete from another layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527257#M58714</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; I think you simply have a couple syntax errors in your pulldata calculation.&amp;nbsp; When referencing a survey question/value, use the ${name} syntax.&amp;nbsp; When referencing the field in your service, use "attributes.fieldName".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Replace &lt;STRONG&gt;"${count_crops}"&lt;/STRONG&gt; in your pulldata calc with (case sensitive) &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;attributes.count_crops"&lt;/STRONG&gt; -&lt;/P&gt;&lt;P&gt;and for the farm_id query, see the pulldata&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-layer/ba-p/1224415#:~:text=concat()%20is%20your,solution%20here." target="_self"&gt;tips on concat and SQL here&lt;/A&gt; and some of the &lt;A href="http://Request%20parameters" target="_self"&gt;examples for request parameters&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are also many great Samples to review in Survey123 Connect; "Multiple Choice Questions" may be of interest to you!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 16:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-to-autocomplete-from-another-layer/m-p/1527257#M58714</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2024-08-26T16:03:11Z</dc:date>
    </item>
  </channel>
</rss>

