Did this in my tiny lib where I can dynamicaly populate ACF select list with the content of other ACF selected items.
Feel free to check the code at https://github.com/chdenat/acf-xtend !
The idea is to get the select associated to any select field and manage its content accordingly.