Add two Select two that their values depend on each other

I need to create an Attribute Province and another Municipality. The idea is that when selecting Province 1, in Municipality only the options 1.1 and 1.2 are loaded, in case of selecting Province 2, in Municipality only the options 2.1 and 2.2 should be shown, how can I achieve this?


necesito crear un Atributo Provincia y otro Municipio. La idea es que al seleccionar la Provincia 1, en Municipio solo se carguen las opciones 1.1 y 1.2, en caso de seleccionar Provincia 2, en Municipio solo se deben mostrar las opciones 2.1 y 2.2, cómo puedo lograrlo?

Hi,

Please check the solution on this topic: Create two dependent Select attributes - #5 by andrii.

P.S. Please post in English (e.g., via Google Translate); this way, questions/answers may also be helpful for others.

​I hope this is helpful to you.