<?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 How to create an if statement within ArcGIS JS API with combo boxes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-an-if-statement-within-arcgis-js-api/m-p/125425#M11666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the local government Public Information Center template&amp;nbsp;&amp;nbsp; I would ideally like to create an if statement which listens for subcategories of request types.&amp;nbsp; However, my subcategories must be an array of items and not single items.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of this from the template found here would be;&amp;nbsp;&amp;nbsp; &lt;A class="jive-link-external-small" href="http://localgovtemplates2.esri.com/publicinfocenter/" rel="nofollow" target="_blank"&gt;Public Information Center&lt;/A&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I choose insect problem underneath the request service tab, then another combo box appears and populates with various types of insects.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My start is here;&amp;nbsp; &lt;/P&gt;&lt;PRE class="javascript" name="code"&gt;dijit.byId('cbRequestType').on('change', Populaterequesttype { ... if (Populaterequesttype&amp;nbsp; == 'insect problem') bar = ants, roaches, spiders, termites;&amp;nbsp; ... }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 18:18:45 GMT</pubDate>
    <dc:creator>GeoffreyWest</dc:creator>
    <dc:date>2014-10-07T18:18:45Z</dc:date>
    <item>
      <title>How to create an if statement within ArcGIS JS API with combo boxes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-an-if-statement-within-arcgis-js-api/m-p/125425#M11666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the local government Public Information Center template&amp;nbsp;&amp;nbsp; I would ideally like to create an if statement which listens for subcategories of request types.&amp;nbsp; However, my subcategories must be an array of items and not single items.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of this from the template found here would be;&amp;nbsp;&amp;nbsp; &lt;A class="jive-link-external-small" href="http://localgovtemplates2.esri.com/publicinfocenter/" rel="nofollow" target="_blank"&gt;Public Information Center&lt;/A&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I choose insect problem underneath the request service tab, then another combo box appears and populates with various types of insects.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My start is here;&amp;nbsp; &lt;/P&gt;&lt;PRE class="javascript" name="code"&gt;dijit.byId('cbRequestType').on('change', Populaterequesttype { ... if (Populaterequesttype&amp;nbsp; == 'insect problem') bar = ants, roaches, spiders, termites;&amp;nbsp; ... }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 18:18:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-an-if-statement-within-arcgis-js-api/m-p/125425#M11666</guid>
      <dc:creator>GeoffreyWest</dc:creator>
      <dc:date>2014-10-07T18:18:45Z</dc:date>
    </item>
  </channel>
</rss>

