<?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: Autpopulate field based on corresponding attribute from online feature layer provided in select_one search function in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1351714#M52978</link>
    <description>&lt;P&gt;I am using the autocomplete search appearance to reference a dynamic hosted feature layer view where the user selects the last report number used in order to generate the next sequential number. I am trying to show the values in descending order but haven't found a solution. Latest expression = &lt;STRONG&gt;&lt;EM&gt;autocomplete search('FireId?url=&lt;A href="https://services6.arcgis.com/iQxzOWEp1MXm2FTa/arcgis/rest/services/EFire2_Training_Fall23/FeatureServer/0" target="_blank"&gt;https://services6.arcgis.com/iQxzOWEp1MXm2FTa/arcgis/rest/services/EFire2_Training_Fall23/FeatureServer/0&lt;/A&gt;', 'matches', 'DOF_District', ${DOF_District}, 'orderByFields=RegionFireID, DESC') &lt;/EM&gt;&lt;/STRONG&gt;and I've tried a dozen other configurations with no luck and still get the list in ascending order (see screenshot). It does provide a filtered list based on the region but my user have to scroll to select the last number used. This is a text field so that might be the issue? Anyone have a possible solution for descending order list?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 21:43:35 GMT</pubDate>
    <dc:creator>Sharouff</dc:creator>
    <dc:date>2023-11-20T21:43:35Z</dc:date>
    <item>
      <title>Autpopulate field based on corresponding attribute from online feature layer provided in select_one search function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1137964#M40058</link>
      <description>&lt;P&gt;Here is an outline of what I am trying to do in Survery123, but I reached a bit of a blocker at step 2.&lt;/P&gt;&lt;P&gt;Users:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Step 1 (done). Select their project name ('projectname') from a autocomplete select_one search function which gets data from an online feature layer. Done, see: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;autocomplete search('findprojectname?url=&lt;A href="https://services3.arcgis.com/Bb8lfThdhugyc4G3/arcgis/rest/services/service_4dc0ba5a63a041f1a474aa960dcc359a/FeatureServer/0" target="_blank"&gt;https://services3.arcgis.com/Bb8lfThdhugyc4G3/arcgis/rest/services/service_4dc0ba5a63a041f1a474aa960dcc359a/FeatureServer/0&lt;/A&gt;', 'projectname')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Step 2 (stuck) Search or pulldata from the same online feature layer to get the corresponding project code (called&amp;nbsp;&lt;SPAN&gt;'unique_ID'&lt;/SPAN&gt;) for the matching project name ('projectname') which they entered in step 1. Not sure if this is done through search under appearances or a calculation I've tried both and ot hasn't worked.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Step 3 (done) Concatenate the project code ('unique_ID') with today's date that is generated by using the now function&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to get an individual asset&amp;nbsp; ID code which is read only. Done - see: concat(${'unique_ID'},"_",format-date(now(), '%y%m%d%H%M'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want them to have the option of using the project name which is more memorable to aquire the project code which will be less memorable. To make the survey more user friendly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you, hope someone can help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heather.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 17:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1137964#M40058</guid>
      <dc:creator>HeatherBell</dc:creator>
      <dc:date>2022-01-27T17:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Autpopulate field based on corresponding attribute from online feature layer provided in select_one search function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1138508#M40106</link>
      <description>&lt;P&gt;This is 100% a shot in the dark since I haven't used a hosted feature layer with search() yet, but is it possible that your query isn't working because you need to URLencode the ${projectname} first?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 19:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1138508#M40106</guid>
      <dc:creator>DerrickWestoby</dc:creator>
      <dc:date>2022-01-28T19:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Autpopulate field based on corresponding attribute from online feature layer provided in select_one search function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1139751#M40205</link>
      <description>&lt;P&gt;I have managed to create a solution using the following in the appearances tab. However, it's a not a perfect solution as the user still needs to select the unique ID, even though only one option is available. Then the survey concatenates the values into one attribute code which contains the parent project code. I think a better solution will be possible using a pulldata function through javascript however, this isn't possible when sharing the survey to public at the moment. &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/pulldata-javascript-query-a-feature-layer-to/td-p/1140244" target="_self"&gt;See post here for the solution that works for forms only shared within organisation&lt;/A&gt;. I've attached the search apperance solution example below as a spreadsheet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;autocomplete search('findcode?url=&lt;EM&gt;replacewithserviceurlxxx&lt;/EM&gt;/FeatureServer/0', 'matches', 'projectname', ${projectname}, 'uniqueID')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 11:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1139751#M40205</guid>
      <dc:creator>HeatherBell</dc:creator>
      <dc:date>2022-02-07T11:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Autpopulate field based on corresponding attribute from online feature layer provided in select_one search function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1238555#M46384</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115865"&gt;@HeatherBell&lt;/a&gt;&amp;nbsp;this was helpful, thanks. I have the exact same issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use a GeoShape to draw on a map and grab an intersecting point's ID&lt;/LI&gt;&lt;LI&gt;Thanks to you I can now automatically submit that ID into a second search a pull back a second attribute for the matching record.&lt;/LI&gt;&lt;LI&gt;However, in order to be able to actually use that second attribute the select_one must be selected by the user....&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/251557"&gt;@ZacharySutherby&lt;/a&gt;&amp;nbsp;, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4925"&gt;@BrettStokes&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/25180"&gt;@Shwu-jingJeng&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;is there any way around this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahargreaves_FW_0-1670371848369.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57822i44B3AACBF7F53B68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ahargreaves_FW_0-1670371848369.png" alt="ahargreaves_FW_0-1670371848369.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 00:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1238555#M46384</guid>
      <dc:creator>ahargreaves_FW</dc:creator>
      <dc:date>2022-12-07T00:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Autpopulate field based on corresponding attribute from online feature layer provided in select_one search function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1351714#M52978</link>
      <description>&lt;P&gt;I am using the autocomplete search appearance to reference a dynamic hosted feature layer view where the user selects the last report number used in order to generate the next sequential number. I am trying to show the values in descending order but haven't found a solution. Latest expression = &lt;STRONG&gt;&lt;EM&gt;autocomplete search('FireId?url=&lt;A href="https://services6.arcgis.com/iQxzOWEp1MXm2FTa/arcgis/rest/services/EFire2_Training_Fall23/FeatureServer/0" target="_blank"&gt;https://services6.arcgis.com/iQxzOWEp1MXm2FTa/arcgis/rest/services/EFire2_Training_Fall23/FeatureServer/0&lt;/A&gt;', 'matches', 'DOF_District', ${DOF_District}, 'orderByFields=RegionFireID, DESC') &lt;/EM&gt;&lt;/STRONG&gt;and I've tried a dozen other configurations with no luck and still get the list in ascending order (see screenshot). It does provide a filtered list based on the region but my user have to scroll to select the last number used. This is a text field so that might be the issue? Anyone have a possible solution for descending order list?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 21:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/autpopulate-field-based-on-corresponding-attribute/m-p/1351714#M52978</guid>
      <dc:creator>Sharouff</dc:creator>
      <dc:date>2023-11-20T21:43:35Z</dc:date>
    </item>
  </channel>
</rss>

