<?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 Survey123 calculate field in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-field/m-p/772402#M4169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a collector app with a custom url (including an ID field) to open Survey123. The url opens the survey and the ID field is populated in my survey. I want to do a calculation on the ID field. Specifically, if the ID field contains a sub-string of 'xyz', I want to use the sub-string to reveal a group. I keep getting an error when I save the exel forms, is there a way around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 15:24:01 GMT</pubDate>
    <dc:creator>MelissaMann1</dc:creator>
    <dc:date>2018-02-22T15:24:01Z</dc:date>
    <item>
      <title>Survey123 calculate field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-field/m-p/772402#M4169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a collector app with a custom url (including an ID field) to open Survey123. The url opens the survey and the ID field is populated in my survey. I want to do a calculation on the ID field. Specifically, if the ID field contains a sub-string of 'xyz', I want to use the sub-string to reveal a group. I keep getting an error when I save the exel forms, is there a way around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-field/m-p/772402#M4169</guid>
      <dc:creator>MelissaMann1</dc:creator>
      <dc:date>2018-02-22T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculate field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-field/m-p/772403#M4170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is possible - you would need to have a calculation in the relevant column of the group that will hide/show based on the ID value. &amp;nbsp;For a substring, you will want to use a regex function (see the Regular Expressions section of&amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;); it will likely be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex(${id_question}, '^.*xyz.*$')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:16:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-field/m-p/772403#M4170</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-02-22T16:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculate field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-field/m-p/772404#M4171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James! Yes that worked. I was trying to do a sub-string calculation like this: &lt;SPAN class=""&gt;substr(${id},5 ,3)&lt;/SPAN&gt;, in the calculation field, then in the group relevant field use if ${calculation_field}="xyz". Your suggestion worked right away. Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-field/m-p/772404#M4171</guid>
      <dc:creator>MelissaMann1</dc:creator>
      <dc:date>2018-02-23T11:50:50Z</dc:date>
    </item>
  </channel>
</rss>

