AnsweredAssumed Answered

If then condition with combo boxes in JavaScript API?

Question asked by geoffreywestgis on Oct 7, 2014
Latest reply on Oct 15, 2014 by geoffreywestgis

I am receiving a syntax error; unexpected identifier at line 5.  @

dijit.byId("cbRequestType").on('change', function (MFValue) {
    if (MFValue == 'Electronic Waste') {
    dijit.byID("cbMFSubType").set('value', 'Copy Machine'); 
    } 
    else if MFValue == '...'{
      dijit.by.ID('cbMFSubType').set('value', 'Printer'); 
    }
  });

Outcomes