<?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: Is it possible within a survey123 smart form to notify the surveyor if a survey on the same site was done in last 15days? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/is-it-possible-within-a-survey123-smart-form-to/m-p/1288371#M49201</link>
    <description>&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;You will need to use the &lt;EM&gt;pulldata("@layer")&lt;/EM&gt; function for this.&amp;nbsp; I attached an XLSForm example.&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The pulldata function allows you to query a layer. You will want to query the inspection's layer with a query that looks something like this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;assetID='100' and inspectionDate BETWEEN&amp;nbsp;CURRENT_TIMESTAMP - 15 AND CURRENT_TIMESTAMP&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For your pulldata query to work, your survey layer MUST allow the query operation&lt;/LI&gt;&lt;LI&gt;The pulldata("@layer") function only works when you are connected (it will not work while offline)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To setup the XLSForm:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Take the attached XLSForm, load it into Survey123 Connect and publish it&lt;/LI&gt;&lt;LI&gt;Go into the item details page of the survey layer created by Survey123 Connect and make sure you enable queries in your surveys layer&lt;/LI&gt;&lt;LI&gt;Get the URL of your layer and replace it in row 8 of yourXLSForm. Re-publish your survey and use either a web browser or the mobile app to add one or more records to test.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 20:32:15 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2023-05-11T20:32:15Z</dc:date>
    <item>
      <title>Is it possible within a survey123 smart form to notify the surveyor if a survey on the same site was done in last 15days?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/is-it-possible-within-a-survey123-smart-form-to/m-p/1287880#M49174</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is it possible within a survey123 smart form to notify the surveyor if a survey on the same site was done in the last 15 days?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Lemuel M.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 18:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/is-it-possible-within-a-survey123-smart-form-to/m-p/1287880#M49174</guid>
      <dc:creator>LemuelM-MDC</dc:creator>
      <dc:date>2023-05-10T18:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible within a survey123 smart form to notify the surveyor if a survey on the same site was done in last 15days?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/is-it-possible-within-a-survey123-smart-form-to/m-p/1288371#M49201</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;You will need to use the &lt;EM&gt;pulldata("@layer")&lt;/EM&gt; function for this.&amp;nbsp; I attached an XLSForm example.&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The pulldata function allows you to query a layer. You will want to query the inspection's layer with a query that looks something like this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;assetID='100' and inspectionDate BETWEEN&amp;nbsp;CURRENT_TIMESTAMP - 15 AND CURRENT_TIMESTAMP&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For your pulldata query to work, your survey layer MUST allow the query operation&lt;/LI&gt;&lt;LI&gt;The pulldata("@layer") function only works when you are connected (it will not work while offline)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To setup the XLSForm:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Take the attached XLSForm, load it into Survey123 Connect and publish it&lt;/LI&gt;&lt;LI&gt;Go into the item details page of the survey layer created by Survey123 Connect and make sure you enable queries in your surveys layer&lt;/LI&gt;&lt;LI&gt;Get the URL of your layer and replace it in row 8 of yourXLSForm. Re-publish your survey and use either a web browser or the mobile app to add one or more records to test.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 20:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/is-it-possible-within-a-survey123-smart-form-to/m-p/1288371#M49201</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-05-11T20:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible within a survey123 smart form to notify the surveyor if a survey on the same site was done in last 15days?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/is-it-possible-within-a-survey123-smart-form-to/m-p/1288402#M49205</link>
      <description>&lt;P&gt;Thank you so much Ismael. This works beautifully. The sample survey with your instructions helped a lot too. I will just let the user making the request know that the function would only works while online, and let him pick. Thanks again.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 21:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/is-it-possible-within-a-survey123-smart-form-to/m-p/1288402#M49205</guid>
      <dc:creator>LemuelM-MDC</dc:creator>
      <dc:date>2023-05-11T21:42:34Z</dc:date>
    </item>
  </channel>
</rss>

