pmmvt Hi, today I try to use Utils_ChainedSelectCommon When i return $results = array(); print(json_encode($results)); Utils_ChainedSelectCommon will not update control as empty select item
ajb Please review this file modules/Utils/CommonData/update.php it's used to update countries / states in the company add. Please try to add a company. Open some debug tools in the browser to inspect ajax requests to the mentioned file. Select Country -> USA - you should get the states Then select any other country that doesn't have states defined... South Africa for instance. You should get in the response json: []and Zone field select will be empty.