Select to view content in your preferred language

How to create an if statement within ArcGIS JS API with combo boxes

2757
0
10-07-2014 11:18 AM
GeoffreyWest
Frequent Contributor

I am using the local government Public Information Center template   I would ideally like to create an if statement which listens for subcategories of request types.  However, my subcategories must be an array of items and not single items.

 

An example of this from the template found here would be;   Public Information Center

 

If I choose insect problem underneath the request service tab, then another combo box appears and populates with various types of insects. 

 

 

My start is here; 

dijit.byId('cbRequestType').on('change', Populaterequesttype { ... if (Populaterequesttype  == 'insect problem') bar = ants, roaches, spiders, termites;  ... }
Tags (1)
0 Kudos
0 Replies