How to allow only one value in Multiselect field in Sugarcrm using dependency or custom JS


I have a multiselect field but I want to allow select only one value based on some condition like dropdown field. So I want to convert multiselct field into dropdown field based on certain conditions.

Parents Reply Children
No Data