Select to view content in your preferred language

ArcGIS API for Javascript dependent drop downs

6485
11
Jump to solution
04-21-2017 12:33 PM
JacobTodd2
Occasional Contributor

I am currently working with ArcGIS API for Javascript 4.3 and I am having issues with creating dependent drop downs as a means of filtering multiple fields. For instance, in the following Feature Service: Layer: states (ID: 3) , I am wanting to have one drop down that is populated by SUB_REGION and then another dependent drop down that is populated by STATE_NAME based on the first drop down's selection. I am fairly new to this so any suggestions or samples would be greatly appreciated.

0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Jay,

  Nope you do have an issue with your requires. You have 

ScaleBar, Attribution,

in your require vars but not in your require array.

0 Kudos
JayHill
Frequent Contributor

Wizard! Thanks Robert! Hope to repay you this year at the dev summit.

0 Kudos