<?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: Referencing a field in calculation parameter in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528068#M58755</link>
    <description>&lt;P&gt;If the survey is previously submitted, should the feet and inches boxes not already contain data from the previous submission?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 17:59:41 GMT</pubDate>
    <dc:creator>abureaux</dc:creator>
    <dc:date>2024-08-27T17:59:41Z</dc:date>
    <item>
      <title>Referencing a field in calculation parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1527426#M58720</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a scenario where I allow the user to enter a dimension in feet (max_width_feet) and inches (max_width_inches). I then combine these into a single inches value (max_width) and store that in the feature layer. This is working fine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JillianStanford_0-1724703162664.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113530iCA74D46E11CA2E09/image-size/large?v=v2&amp;amp;px=999" role="button" title="JillianStanford_0-1724703162664.png" alt="JillianStanford_0-1724703162664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I can't figure out is how to populate the feet and inches fields from the max_width field when the user edits a previously submitted survey. If I try and reference max_width in the calculation parameter of max_width_feet and max_width_inches I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JillianStanford_1-1724703574861.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113531i6677EAFAE214552E/image-size/large?v=v2&amp;amp;px=999" role="button" title="JillianStanford_1-1724703574861.png" alt="JillianStanford_1-1724703574861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JillianStanford_2-1724703628712.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113532i015571D54412B586/image-size/large?v=v2&amp;amp;px=999" role="button" title="JillianStanford_2-1724703628712.png" alt="JillianStanford_2-1724703628712.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It makes sense to me that a field can't reference a field that references the first field but what is the right way to do this? Is it something to do with calculation mode? Or am I not using default and calculation correctly?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 20:28:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1527426#M58720</guid>
      <dc:creator>JillianStanford</dc:creator>
      <dc:date>2024-08-26T20:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing a field in calculation parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528068#M58755</link>
      <description>&lt;P&gt;If the survey is previously submitted, should the feet and inches boxes not already contain data from the previous submission?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 17:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528068#M58755</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-27T17:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing a field in calculation parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528069#M58756</link>
      <description>&lt;P&gt;No, because I'm not storing the feet and inches, I just want to store a single value that combines feet and inches into inches.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 18:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528069#M58756</guid>
      <dc:creator>JillianStanford</dc:creator>
      <dc:date>2024-08-27T18:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing a field in calculation parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528120#M58760</link>
      <description>&lt;P&gt;Since is sounds like there is a good use-case, why not just remove the 'null' parameter and let data be stored? That would resolve the issue it seems.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 18:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528120#M58760</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-27T18:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing a field in calculation parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528142#M58762</link>
      <description>&lt;P&gt;Sure, I could do that but why store a value across two fields when I can store it in one?&lt;/P&gt;&lt;P&gt;There must be other circumstances where you would want to present a value in a user friendly way in the survey and then store it in a more efficient way.&lt;/P&gt;&lt;P&gt;Thanks for your response!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 19:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528142#M58762</guid>
      <dc:creator>JillianStanford</dc:creator>
      <dc:date>2024-08-27T19:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing a field in calculation parameter</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528154#M58763</link>
      <description>&lt;P&gt;Well, you just presented a valid case for having it stored in all three fields.&lt;/P&gt;&lt;P&gt;Your combined field is still your single source of truth. You'd just be saving those two other fields for cases where the inputs need to be edited. This is a common scenario. I maintain &lt;EM&gt;many&lt;/EM&gt; fields I don't "need", but keep around because it is helpful for situations like this.&lt;/P&gt;&lt;P&gt;Should you ever need a "This layer is 100% final product only, no exceptions", you could set up a layer view that would exclude the "unnecessary" fields.&lt;/P&gt;&lt;P&gt;Basically, you can't extract data from your combined field and dump it back into the source fields with native functionality because it creates a circular reference. A field can't be its own source because it would endlessly cycle. You &lt;EM&gt;may&lt;/EM&gt; be able to make a script that does that for you without producing a visible error. But it would still be a circular reference and unlikely to behave correctly. Just allowing those two fields to store data resolves all these issues.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 19:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/referencing-a-field-in-calculation-parameter/m-p/1528154#M58763</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-27T19:47:34Z</dc:date>
    </item>
  </channel>
</rss>

