<?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: Prepopulate field from related table in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/prepopulate-field-from-related-table/m-p/1572070#M60664</link>
    <description>&lt;P&gt;Yes the&amp;nbsp;{relationships/2/application_no} syntax does not work in the URL in Field Maps.&amp;nbsp; It works in the browser but not Field Maps.&amp;nbsp; It did not work in old map viewer either and I have been bugging the Field Maps team about this for close to 10 years I think!&amp;nbsp; I even talked to Jeff directly about it.&lt;/P&gt;&lt;P&gt;I posted it again here&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/relationships-0-fieldname-not-working-in-field/m-p/1534936" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/relationships-0-fieldname-not-working-in-field/m-p/1534936&lt;/A&gt;&amp;nbsp;some time back and got no response.&amp;nbsp; Drives me nuts it does not work and is not documented anywhere.&amp;nbsp; Please chime in on that post and maybe move this post to the Field Maps page since its not a 123 issue.&lt;/P&gt;&lt;P&gt;Instead you have to make your own Arcade expressions to do the lookups and then use that in the URL.&lt;/P&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;var tbl = FeatureSetByRelationshipName($feature, "Points", ['DesignLat'], false);&lt;BR /&gt;return First(tbl).DesignLat&lt;/P&gt;&lt;P&gt;then the URL you use&amp;nbsp;&amp;amp;field:DesignLat={expression/expr0}&lt;/P&gt;&lt;P&gt;I have to make over 30 of these in my project because the relationships thing won't work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 13:43:46 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2025-01-02T13:43:46Z</dc:date>
    <item>
      <title>Prepopulate field from related table</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prepopulate-field-from-related-table/m-p/1572054#M60661</link>
      <description>&lt;P&gt;I have set up a 1-to-many relationship class between a feature class (Building Permit Application Point) and its related table (Customer Information), and published it to ArcGIS Enterprise 11.3.&lt;/P&gt;&lt;P&gt;The user is required to create a new inspection record using a Survey123 form.&lt;/P&gt;&lt;P&gt;When the user selects an existing BPA point using Field Maps or Map Viewer, the Inspection form will be opened and I want the new inspection record to automatically populate with certain attribute values (Application No, Project Name) from the related table of the selected BPA point.&lt;/P&gt;&lt;P&gt;In the BPA point popup, I used the URL format: arcgis-survey123://?itemID=Survey123FormID&amp;amp;field:application_no={relationships/2/application_no}&amp;amp;field:project_name={relationships/2/project_name}, but it's not functioning as expected.&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue? If so, I would appreciate any advice or suggestions on how to resolve this. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 10:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prepopulate-field-from-related-table/m-p/1572054#M60661</guid>
      <dc:creator>mdg</dc:creator>
      <dc:date>2025-01-02T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prepopulate field from related table</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prepopulate-field-from-related-table/m-p/1572070#M60664</link>
      <description>&lt;P&gt;Yes the&amp;nbsp;{relationships/2/application_no} syntax does not work in the URL in Field Maps.&amp;nbsp; It works in the browser but not Field Maps.&amp;nbsp; It did not work in old map viewer either and I have been bugging the Field Maps team about this for close to 10 years I think!&amp;nbsp; I even talked to Jeff directly about it.&lt;/P&gt;&lt;P&gt;I posted it again here&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/relationships-0-fieldname-not-working-in-field/m-p/1534936" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/relationships-0-fieldname-not-working-in-field/m-p/1534936&lt;/A&gt;&amp;nbsp;some time back and got no response.&amp;nbsp; Drives me nuts it does not work and is not documented anywhere.&amp;nbsp; Please chime in on that post and maybe move this post to the Field Maps page since its not a 123 issue.&lt;/P&gt;&lt;P&gt;Instead you have to make your own Arcade expressions to do the lookups and then use that in the URL.&lt;/P&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;var tbl = FeatureSetByRelationshipName($feature, "Points", ['DesignLat'], false);&lt;BR /&gt;return First(tbl).DesignLat&lt;/P&gt;&lt;P&gt;then the URL you use&amp;nbsp;&amp;amp;field:DesignLat={expression/expr0}&lt;/P&gt;&lt;P&gt;I have to make over 30 of these in my project because the relationships thing won't work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 13:43:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prepopulate-field-from-related-table/m-p/1572070#M60664</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2025-01-02T13:43:46Z</dc:date>
    </item>
  </channel>
</rss>

