<?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: Pre-populate question with an answer from a previous survey? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pre-populate-question-with-an-answer-from-a/m-p/1026194#M32442</link>
    <description>&lt;P&gt;Hi, I think you can use the custom JavaScript function to query the feature service, one limitation is that the device has to be online. Have a look at the "Working with web services" section of this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/extending-survey123-smart-forms-with-custom-js-functions/ba-p/898782" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/extending-survey123-smart-forms-with-custom-js-functions/ba-p/898782&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 07:45:47 GMT</pubDate>
    <dc:creator>Jing_Sun</dc:creator>
    <dc:date>2021-02-12T07:45:47Z</dc:date>
    <item>
      <title>Pre-populate question with an answer from a previous survey?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pre-populate-question-with-an-answer-from-a/m-p/1025903#M32426</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am digitizing a water quality form for a client. In their original form, they ask that for the meter reading from the previous day as well as the meter reading for the current day.&lt;/P&gt;&lt;P&gt;From what I understand, pulldata() works for external datasets. Is there a way to pull the meter reading from the last form that was filled out and use it to populate the "previous reading" question? A way to reference the survey feature service?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to automate it, because I think having the user close out, open a previous survey, close out of that, and reopen their current form is an inefficient workflow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulieWebb_1-1613058331397.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5840iD9A8793FDE3ACD3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulieWebb_1-1613058331397.png" alt="JulieWebb_1-1613058331397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pre-populate-question-with-an-answer-from-a/m-p/1025903#M32426</guid>
      <dc:creator>JulieWebb</dc:creator>
      <dc:date>2021-02-11T15:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-populate question with an answer from a previous survey?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pre-populate-question-with-an-answer-from-a/m-p/1026194#M32442</link>
      <description>&lt;P&gt;Hi, I think you can use the custom JavaScript function to query the feature service, one limitation is that the device has to be online. Have a look at the "Working with web services" section of this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/extending-survey123-smart-forms-with-custom-js-functions/ba-p/898782" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/extending-survey123-smart-forms-with-custom-js-functions/ba-p/898782&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 07:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pre-populate-question-with-an-answer-from-a/m-p/1026194#M32442</guid>
      <dc:creator>Jing_Sun</dc:creator>
      <dc:date>2021-02-12T07:45:47Z</dc:date>
    </item>
  </channel>
</rss>

