Hi Daniel.
That was code I found on ACF for generating a dynamic select field from repeater values.
I’ve solved it thanks, on the post template I have a repeater field to check rows that then checks if the label == the same as the name sub field, and if so, shows the additional sub fields.