<?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: Calculation works in Connect but not in the Web Browser in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250732#M47043</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/478441"&gt;@Symbology2008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to recreate the issue with your form at 3.16&lt;/P&gt;&lt;P&gt;Playing around with it I got it to work (after simplifying) by changing the format of the calculation to&amp;nbsp;if(${HHS_REGION}=1, '20120','')&lt;/P&gt;&lt;P&gt;I couldn't find documentation on this to know if this was expected or not. Perhaps someone could advise but this should work for you now&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 12:02:28 GMT</pubDate>
    <dc:creator>Richard_Purkis</dc:creator>
    <dc:date>2023-01-24T12:02:28Z</dc:date>
    <item>
      <title>Calculation works in Connect but not in the Web Browser</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250647#M47038</link>
      <description>&lt;P&gt;Using an "if selected" calculation to auto populate a select multiple field. Works great in Connect (video attached), but does not work in the web browser. Submitted surveys log a value of "true", not the expected csv string. Is there different syntax I should be using in the calc column?&lt;/P&gt;&lt;P&gt;Connect version 3.13.249&lt;/P&gt;&lt;P&gt;xlsx attached. if statement in row 23.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 00:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250647#M47038</guid>
      <dc:creator>Symbology2008</dc:creator>
      <dc:date>2023-01-24T00:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation works in Connect but not in the Web Browser</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250732#M47043</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/478441"&gt;@Symbology2008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to recreate the issue with your form at 3.16&lt;/P&gt;&lt;P&gt;Playing around with it I got it to work (after simplifying) by changing the format of the calculation to&amp;nbsp;if(${HHS_REGION}=1, '20120','')&lt;/P&gt;&lt;P&gt;I couldn't find documentation on this to know if this was expected or not. Perhaps someone could advise but this should work for you now&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 12:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250732#M47043</guid>
      <dc:creator>Richard_Purkis</dc:creator>
      <dc:date>2023-01-24T12:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation works in Connect but not in the Web Browser</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250774#M47045</link>
      <description>&lt;P&gt;The web browser is not as forgiving as Connect and the field apps are. You need to chain your if statements together instead of trying to OR them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each if statement is the 'else' choice for the proceeding if statement until you arrive at the end. That is where you then add the default option if none of your if statements are true.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;if(${status}='good', 'green', if(${status}='ok', 'yellow', if(${status}='bad', 'red', 'white')))&lt;/P&gt;&lt;P&gt;What that statement is saying is 'if the status is good, give me red, if not check if it's ok and give me yellow. If it's not yellow, check if it's bad and give me red. If not, then give me white.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 13:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250774#M47045</guid>
      <dc:creator>JenniferAcunto</dc:creator>
      <dc:date>2023-01-24T13:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation works in Connect but not in the Web Browser</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250782#M47046</link>
      <description>&lt;P&gt;This worked perfect! Thank you for the script &amp;amp; explanation, Jen!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-works-in-connect-but-not-in-the-web/m-p/1250782#M47046</guid>
      <dc:creator>Symbology2008</dc:creator>
      <dc:date>2023-01-24T14:08:49Z</dc:date>
    </item>
  </channel>
</rss>

