AnsweredAssumed Answered

Need Help with "onChange" event for Measurement Units.

Question asked by janiceb on Jan 8, 2014
Latest reply on Jan 9, 2014 by janiceb
Hi All,

I would like to have some code execute when the user changes units in the Measurement Widget. I have been able to get the "onClick" event for the area, distance, and location buttons but have not been able to get events from the Units DropDown. Here is what I have tried:
        dojo.connect(measurement.unit, "onChange", function () {             console.debug("onChange... Units");         });   //NOT WORKING

I have also tried measurement.unit.dropDown with no luck. Is there a way to capture this event or some other method so that I can run code when the units are changed in the Measurement Widget?

I am using 3.7 JavaScript API.