install conditional cmb2 and it works in the back end.
I managed to call the file cmb2-conditionals.js to the front end but the ocndicional does not work I have put the ID of the field.
please help
PS I have seen the related posts but they did not help me I have tried several things.
This is the code that works well in Back end but does not work in the front end.
call script in function.php
install conditional cmb2 and it works in the back end. I managed to call the file cmb2-conditionals.js to the front end but the ocndicional does not work I have put the ID of the field. please help PS I have seen the related posts but they did not help me I have tried several things.
This is the code that works well in Back end but does not work in the front end. call script in function.php
wp_enqueue_script('cmb2-conditionals', plugins_url('/cmb2-conditionals.js', 'path/to/CMB2_conditionals/file'), array('jquery'), '1.0.2', true);
thanks for your Help Friends