<?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: Calculating  Inbox Record in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765929#M2513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;We have made a change to the way that the inbox and drafts do calculations, as a result of user feedback and bugs raised. Essentially, users were unhappy about the fact that when a survey was loaded/opened, calculations would fire and values would be overridden - even if the user had manually typed something in. To make the behavior&amp;nbsp;more predictable, on load from the Inbox or Drafts, the survey values will match whatever was entered in the form when it was submitted/saved - i.e. no calculations will run.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;However, when you update the&amp;nbsp;values in the form - calculations should be triggered if they reference&amp;nbsp;another question that has changed. This looks to be a bug and we will get this looked at. For the time being, the user will need to manually recalculate if working from drafts/the inbox.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2018 02:05:41 GMT</pubDate>
    <dc:creator>JohnathanHasthorpe</dc:creator>
    <dc:date>2018-07-19T02:05:41Z</dc:date>
    <item>
      <title>Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765928#M2512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble getting calculations to work in my form.&amp;nbsp;&amp;nbsp;The calculation occurs in a related record that is opened via the inbox.&amp;nbsp; The source for my form is a hosted feature layer in ArcGIS Online.&amp;nbsp; The fields in question are all part of the same record.&amp;nbsp; The Contract field (part of the related record) in my survey has a value when it is opened in Survey123.&amp;nbsp; The values come from a choice list:&amp;nbsp; 1: Asphalt Base road, 2:&amp;nbsp; Concrete Base Road, 3:&amp;nbsp; Sidewalk, 4:&amp;nbsp; Grass.&amp;nbsp; There are four select_one fields that I want to be populated with an answer based on the this contract type.&amp;nbsp; These fields can have an answer of -1:&amp;nbsp; Not Applicable, 0:&amp;nbsp; No, 1:&amp;nbsp; Yes.&amp;nbsp; The contract type will determine how each of these will have their answer calculated.&amp;nbsp; Eventually, I am going to hide the fields that don't fit with a certain contract type.&amp;nbsp;For example, a grass cut does not have vehicle detectors and so would have an answer of -1 (Not Applicable) and be hidden for this contract type.&amp;nbsp; When a field needs an answer, I want each select_one question to not have an automatically calculated answer because I need the user to make a choice.&amp;nbsp; If they don't choose one, it will be caught when then try to submit the form because these fields are required.&amp;nbsp; As I understand it, the calculation should occur every time an answer is changed on my form.&amp;nbsp; That doesn't seem to be happening.&amp;nbsp; When the survey is opened and&amp;nbsp;a field changed, the calculations don't appear to run.&amp;nbsp; If&amp;nbsp;I click the refresh arrows next to the select_one fields nothing appears to happen.&amp;nbsp; I attached my form.&amp;nbsp; Can anyone find anything wrong with my formulas?&amp;nbsp; Am I misusing the calculation column? What am I missing?&amp;nbsp; Thanks.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765928#M2512</guid>
      <dc:creator>JimW</dc:creator>
      <dc:date>2018-07-18T18:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765929#M2513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;We have made a change to the way that the inbox and drafts do calculations, as a result of user feedback and bugs raised. Essentially, users were unhappy about the fact that when a survey was loaded/opened, calculations would fire and values would be overridden - even if the user had manually typed something in. To make the behavior&amp;nbsp;more predictable, on load from the Inbox or Drafts, the survey values will match whatever was entered in the form when it was submitted/saved - i.e. no calculations will run.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;However, when you update the&amp;nbsp;values in the form - calculations should be triggered if they reference&amp;nbsp;another question that has changed. This looks to be a bug and we will get this looked at. For the time being, the user will need to manually recalculate if working from drafts/the inbox.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 02:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765929#M2513</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2018-07-19T02:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765930#M2514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply and verifying the calculation trigger bug.&amp;nbsp; Is this just limited to drafts and inbox surveys?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple form with just a few fields to replicate the behavior from my mark out form.&amp;nbsp; When I click a contract type I want the select_one questions to become -1, 0 or 1.&amp;nbsp; When I select a contract type, nothing happens to any of my questions.&amp;nbsp; I changed one question type to just a text&amp;nbsp;question to see if I could just have a text answer populated in the question and see this string in the question when my form opens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SyntaxError: Expected token `;' in expression: if ( /Form_6/Contract =1,"Success", "Fail")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this related to the calculation trigger bug, something different or am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 10:47:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765930#M2514</guid>
      <dc:creator>JimW</dc:creator>
      <dc:date>2018-07-19T10:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765931#M2515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds different. Please share the survey and steps and I'll take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 01:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765931#M2515</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2018-07-23T01:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765932#M2516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached are the two surveys where I am experiencing issues.&amp;nbsp; The &lt;EM&gt;Paving Cuts-First Inspection&lt;/EM&gt; survey opens from the Inbox.&amp;nbsp; The &lt;STRONG&gt;Repair Location&lt;/STRONG&gt; details is a read only group that provides our inspector with information about the repair and is the parent record to &lt;STRONG&gt;Paving Cut Details&lt;/STRONG&gt;.&amp;nbsp; The &lt;STRONG&gt;Contract&lt;/STRONG&gt; question is set in the office prior to the inspector performing this inspection so when he opens the survey, it already has a value.&amp;nbsp; My intent is for the &lt;STRONG&gt;Contract&lt;/STRONG&gt; question to automatically populate answers for the &lt;STRONG&gt;Vehicle Detector&lt;/STRONG&gt;, &lt;STRONG&gt;Pavement Markings&lt;/STRONG&gt;, &lt;STRONG&gt;Reuse Curbing&lt;/STRONG&gt; and &lt;STRONG&gt;Reuse Pavers&lt;/STRONG&gt; questions.&amp;nbsp; &amp;nbsp;I also will have these same survey questions be hidden based on the selected contract type.&amp;nbsp; I have kept them visible thus far to ensure the answers I want are calculated correctly.&amp;nbsp; The table below shows how I want the answers to be determined based on the selected contract type.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" height="236" style="border: 1px solid #c6c6c6; width: 701px;"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef; height: 50px;"&gt;&lt;TH style="width: 75px; height: 50px;"&gt;&lt;/TH&gt;&lt;TH style="width: 134px; height: 50px; text-align: center;"&gt;Asphalt Base Road&lt;/TH&gt;&lt;TH style="width: 144px; height: 50px; text-align: center;"&gt;Concrete Base Road&lt;/TH&gt;&lt;TH style="width: 143px; height: 50px; text-align: center;"&gt;Sidewalk&lt;/TH&gt;&lt;TH style="width: 163px; height: 50px; text-align: center;"&gt;Grass&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 75px; height: 25px; text-align: center;"&gt;&lt;STRONG&gt;Vehicle Detectors&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 134px; height: 25px; text-align: center;"&gt;No Default Answer&amp;nbsp;&lt;/TD&gt;&lt;TD style="width: 144px; height: 25px; text-align: center;"&gt;&lt;SPAN&gt;No Default Answer&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 143px; height: 25px; text-align: center;"&gt;&lt;P&gt;Not Applicable&lt;/P&gt;&lt;P&gt;(Hidden)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 163px; height: 25px; text-align: center;"&gt;&lt;P style="padding: 0px;"&gt;Not Applicable&lt;/P&gt;&lt;P style="padding: 0px;"&gt;(Hidden)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 75px; height: 25px; text-align: center;"&gt;&lt;STRONG&gt;Pavement Markings&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 134px; height: 25px; text-align: center;"&gt;&lt;SPAN&gt;No Default Answer&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 144px; height: 25px; text-align: center;"&gt;&lt;SPAN&gt;No Default Answer&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 143px; height: 25px; text-align: center;"&gt;&lt;P style="padding: 0px;"&gt;Not Applicable&lt;/P&gt;&lt;P style="padding: 0px;"&gt;(Hidden)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 163px; height: 25px; text-align: center;"&gt;&lt;P style="padding: 0px;"&gt;Not Applicable&lt;/P&gt;&lt;P style="padding: 0px;"&gt;(Hidden)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 75px; height: 25px; text-align: center;"&gt;&lt;STRONG&gt;Reuse Pavers&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 134px; height: 25px; text-align: center;"&gt;&lt;P&gt;Not Applicable&lt;/P&gt;&lt;P&gt;(Hidden)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 144px; height: 25px; text-align: center;"&gt;&lt;P&gt;&lt;SPAN&gt;Not Applicable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(Hidden)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 143px; height: 25px; text-align: center;"&gt;&lt;SPAN&gt;No Default Answer&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 163px; height: 25px; text-align: center;"&gt;&lt;P style="padding: 0px;"&gt;Not Applicable&lt;/P&gt;&lt;P style="padding: 0px;"&gt;(Hidden)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 75px; height: 25px; text-align: center;"&gt;&lt;STRONG&gt;Reuse Curbing&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 134px; height: 25px; text-align: center;"&gt;&lt;SPAN&gt;No Default Answer&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 144px; height: 25px; text-align: center;"&gt;&lt;SPAN&gt;No Default Answer&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 143px; height: 25px; text-align: center;"&gt;&lt;SPAN&gt;No Default Answer&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 163px; height: 25px; text-align: center;"&gt;&lt;P style="padding: 0px;"&gt;Not Applicable&lt;/P&gt;&lt;P style="padding: 0px;"&gt;(Hidden)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to ensure that there are answer to these survey questions when they are not visible to the inspector and force them to make answers when they are visible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several questions following these that will have similar logic applied but I haven't added that as I haven't gotten it working for these fields yet.&amp;nbsp; At the bottom of the survey is a third related table that will store bid items related to the work done for the parent Paving Cut record.&amp;nbsp; The calculations I have here work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also attached is a survey called From 6.&amp;nbsp; This is a simple Survey that just has the Contract type and four questions and is not tied to my feature service in AGOL nor does it have any related records/repeats to deal with.&amp;nbsp; I just wanted to see if I could get the calculations to work based on a selection I make and received the same results as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 12:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765932#M2516</guid>
      <dc:creator>JimW</dc:creator>
      <dc:date>2018-07-23T12:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765933#M2517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick fix for this:&amp;nbsp;&lt;EM&gt;if(${Contract}=1, "Success", "Fail")&lt;/EM&gt; - don't put a space between the if and the (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 02:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765933#M2517</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2018-07-25T02:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765934#M2518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it?&amp;nbsp; One lousy space?&amp;nbsp; I am glad it was something simple.&amp;nbsp; I should have noticed that based on the other if statements in my sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/765934#M2518</guid>
      <dc:creator>JimW</dc:creator>
      <dc:date>2018-07-25T10:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/1028233#M32599</link>
      <description>&lt;P&gt;Is there a way around the calculation refresh/update for inbox items?&lt;/P&gt;&lt;P&gt;I have a field (chg_code) that tracks whether its a new site or an edit site.&lt;/P&gt;&lt;P&gt;I have a calculation that reads a different attribute (site_id )and if the attribute has a value greater than 0, the site is considered edited and receives a chg_code value of 2. If its a new site it receives a value of 1. Its that easy.&lt;/P&gt;&lt;P&gt;However, the way i see it, users are going to need to hit the calculate button if they make an edit to the feature. And people will naturally forget to do this.&lt;/P&gt;&lt;P&gt;How would you suggest moving forward?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 20:25:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/1028233#M32599</guid>
      <dc:creator>ScottLehto1</dc:creator>
      <dc:date>2021-02-18T20:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating  Inbox Record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/1275746#M48446</link>
      <description>&lt;P&gt;Also have this question&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 13:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-inbox-record/m-p/1275746#M48446</guid>
      <dc:creator>Adam_Bourque</dc:creator>
      <dc:date>2023-04-05T13:40:56Z</dc:date>
    </item>
  </channel>
</rss>

