@Shaheena_SheikhAre you calling that change function in dialog load as well?$(".cq-dialog").find("#country").on("change", setCitiesOptions); // Onchane Event
setCitiesOptions(); // Call the set options function on dialog load If now calling setOptions function onload, try calling it.