<?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: Problem with the calculate function in a repeat in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863982#M26528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks Phillips for your explanation. I will need to change my process using a joint between the child and the parent for my webapp.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2019 16:14:52 GMT</pubDate>
    <dc:creator>FlorenceRaimbault</dc:creator>
    <dc:date>2019-12-18T16:14:52Z</dc:date>
    <item>
      <title>Problem with the calculate function in a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863978#M26524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a survey with a repeat. In the survey I have a question to know if the survey is cancelled or not. I need to report that information in every repeat. I try a calculate in the repeat to copy the information. But only the first repeat contains the value of the calculate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have the same problem with another calculate field (sum) in the repeat the field contains the result of the concatenation of 2 fields from the main survey.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; Is there a way to calculate the value for each repeat? &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;this&amp;nbsp;is&amp;nbsp;the result of the 4 repeats in the same survey. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="error calculate reapeat" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/476219_error calculate reapeat.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I joint my xls form &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 22:06:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863978#M26524</guid>
      <dc:creator>FlorenceRaimbault</dc:creator>
      <dc:date>2019-12-13T22:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the calculate function in a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863979#M26525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a look at your xlsx form and the issues you are seeing are due&amp;nbsp;to the way you are using the calculate fields in the repeat.&amp;nbsp;The calculate question type is a hidden field in the form, this means it can only be updated once and if the values for the inputs are changed, you can not recalculate the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change the calculate questions to text questions for testing, the behaviour will be exactly the same but they will be visible in Connect/app so you can see what is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am seeing the concat calculation working as expected, provided both info1 and info2 have values at the time of navigating between the repeats. If you modify or add values to those fields after you have navigated between repeats, you would need to recalculate the sum, which you can not do for hidden calculation question types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same applies for the&amp;nbsp;annuler_collecte question, you have set a default of non, so if the repeat is navigated when the answer is non, all the repeats will have this value. You need to change this value in the select one before the repeats are updated. I would suggest moving this question above the repeat section not after it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Dec 2019 23:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863979#M26525</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-15T23:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the calculate function in a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863980#M26526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks, Phillip, for the explanation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I understand that my way to transfer the information from the parent form to the repeat (child) doesn’t work very well when we update the parent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;My problem is that we use only the repeat layer in a webapp to show the result of the survey, and we would like to show the parent info in the same layer without a joint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;So Is there à way to transfer the information from the parent form to all the chill using a hidden way, when I update the parent form without to have to update all the child individually?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 18:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863980#M26526</guid>
      <dc:creator>FlorenceRaimbault</dc:creator>
      <dc:date>2019-12-17T18:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the calculate function in a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863981#M26527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way to update the values in the repeat section with updated values from the parent if the value changes and the repeat already had values. This would cause changes to existing data that if were not wanted, would not be able to be undone. This is why the recalculation button must be pressed to update the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 00:40:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863981#M26527</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-18T00:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the calculate function in a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863982#M26528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks Phillips for your explanation. I will need to change my process using a joint between the child and the parent for my webapp.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 16:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-the-calculate-function-in-a-repeat/m-p/863982#M26528</guid>
      <dc:creator>FlorenceRaimbault</dc:creator>
      <dc:date>2019-12-18T16:14:52Z</dc:date>
    </item>
  </channel>
</rss>

