<?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 if selected field starts with '' then other field = '', elif...? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/if-selected-field-starts-with-then-other-field/m-p/842484#M21205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possible to do a compound if statement with starts with being the second argument? e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If selected veg_field starts with 'A' then surface_field = 25, elif selected veg_field starts with 'B' then surface_field = 10 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2020 04:16:15 GMT</pubDate>
    <dc:creator>RichardWebb3</dc:creator>
    <dc:date>2020-06-26T04:16:15Z</dc:date>
    <item>
      <title>if selected field starts with '' then other field = '', elif...?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-selected-field-starts-with-then-other-field/m-p/842484#M21205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possible to do a compound if statement with starts with being the second argument? e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If selected veg_field starts with 'A' then surface_field = 25, elif selected veg_field starts with 'B' then surface_field = 10 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 04:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-selected-field-starts-with-then-other-field/m-p/842484#M21205</guid>
      <dc:creator>RichardWebb3</dc:creator>
      <dc:date>2020-06-26T04:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: if selected field starts with '' then other field = '', elif...?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-selected-field-starts-with-then-other-field/m-p/842485#M21206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could achieve this using the &lt;STRONG&gt;starts-with()&lt;/STRONG&gt; function. The following example returns a number if veg_field starts with 'A' or 'B'; else it leaves the field blank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;if(starts-with(${veg_field},'A'),25,if(starts-with(${veg_field},'B'),10,''))&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;For more on XLSForm functions and operators, please see:&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 03:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-selected-field-starts-with-then-other-field/m-p/842485#M21206</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2020-06-30T03:05:22Z</dc:date>
    </item>
  </channel>
</rss>

