<?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: Filtering by Date in Autocomplete Search Questions in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634880#M63446</link>
    <description>&lt;DIV class=""&gt;&lt;PRE&gt;search(tableName, searchType, searchColumn, searchText, filterColumn, filterText)&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;The above is the expression you need to use for search()&lt;/P&gt;&lt;P&gt;You can use a SQL Where expression within the tableName parameter to filter the table. e.g. if submitted_date is your field:&lt;/P&gt;&lt;P&gt;"layerName?url=&lt;A href="https://yourserver/FeatureServer/0&amp;amp;where=submitted_date" target="_blank" rel="noopener"&gt;https://yourserver/FeatureServer/0&amp;amp;where=submitted_date&lt;/A&gt; &amp;gt; CURRENT_TIMESTAMP - INTERVAL '7' DAY"&lt;/P&gt;&lt;P&gt;You would need to update your other parameters but it would look like:&lt;/P&gt;&lt;P&gt;search(&lt;FONT color="#0000FF"&gt;"layerName?url=&lt;A href="https://yourserver/FeatureServer/0&amp;amp;where=submitted_date" target="_blank" rel="noopener"&gt;https://yourserver/FeatureServer/0&amp;amp;where=submitted_date&lt;/A&gt; &amp;gt; CURRENT_TIMESTAMP - INTERVAL '7' DAY"&lt;/FONT&gt;, searchType, searchColumn, searchText, filterColumn, filterText)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-p/1060838/" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-p/1060838/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A700D2AABF47F1AE4D5004762DB372" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A700D2AABF47F1AE4D5004762DB372&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 08:40:01 GMT</pubDate>
    <dc:creator>ChristopherCounsell</dc:creator>
    <dc:date>2025-07-22T08:40:01Z</dc:date>
    <item>
      <title>Filtering by Date in Autocomplete Search Questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634679#M63442</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using Survey123 Connect 3.23 to build a survey with an autocomplete search function. The question pulls from the results of another Survey123 form through a REST endpoint. I have the autocomplete search question working properly, but I need to add a filter to the results to only show entries from the past 7 days.&lt;/P&gt;&lt;P&gt;I have a 'submitted date' field in the 1st Survey123 form that I am trying to use to filter. The way I have tried to filter the results is: submitted date &amp;gt; current date - 604800, after the main text in the 'appearance' field.&lt;/P&gt;&lt;P&gt;I have done a good amount of research and trial/error and I cannot come up with the correct syntax to get this question working properly.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 18:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634679#M63442</guid>
      <dc:creator>GISatMLTMUA</dc:creator>
      <dc:date>2025-07-21T18:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by Date in Autocomplete Search Questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634880#M63446</link>
      <description>&lt;DIV class=""&gt;&lt;PRE&gt;search(tableName, searchType, searchColumn, searchText, filterColumn, filterText)&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;The above is the expression you need to use for search()&lt;/P&gt;&lt;P&gt;You can use a SQL Where expression within the tableName parameter to filter the table. e.g. if submitted_date is your field:&lt;/P&gt;&lt;P&gt;"layerName?url=&lt;A href="https://yourserver/FeatureServer/0&amp;amp;where=submitted_date" target="_blank" rel="noopener"&gt;https://yourserver/FeatureServer/0&amp;amp;where=submitted_date&lt;/A&gt; &amp;gt; CURRENT_TIMESTAMP - INTERVAL '7' DAY"&lt;/P&gt;&lt;P&gt;You would need to update your other parameters but it would look like:&lt;/P&gt;&lt;P&gt;search(&lt;FONT color="#0000FF"&gt;"layerName?url=&lt;A href="https://yourserver/FeatureServer/0&amp;amp;where=submitted_date" target="_blank" rel="noopener"&gt;https://yourserver/FeatureServer/0&amp;amp;where=submitted_date&lt;/A&gt; &amp;gt; CURRENT_TIMESTAMP - INTERVAL '7' DAY"&lt;/FONT&gt;, searchType, searchColumn, searchText, filterColumn, filterText)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-p/1060838/" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-p/1060838/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A700D2AABF47F1AE4D5004762DB372" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A700D2AABF47F1AE4D5004762DB372&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 08:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634880#M63446</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2025-07-22T08:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by Date in Autocomplete Search Questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634941#M63448</link>
      <description>&lt;P&gt;&amp;lt;woops can't delete&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634941#M63448</guid>
      <dc:creator>Town_of_Fuquay-Varina_GIS</dc:creator>
      <dc:date>2025-07-22T13:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by Date in Autocomplete Search Questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634946#M63450</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm not sure if this is relevant, but AGOL stores dates as epoch&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;milliseconds.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;I noticed your math is using 7 days in seconds, 604800. I wonder if you would need to add three zeroes to that, otherwise you are only subtracting 0.007 days?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/filtering-by-date-in-autocomplete-search-questions/m-p/1634946#M63450</guid>
      <dc:creator>CalvinHarmin</dc:creator>
      <dc:date>2025-07-22T13:44:22Z</dc:date>
    </item>
  </channel>
</rss>

