Hi,
I created an example for you and sent it in attached file, please download->unzip->and install it (BF->Configuration->Package Installer->select this xml file->Install Package).
you can find the code init script and Advanced of Form in the visible rules.
Init script:
function ff_QuickForm1660825328_init()
{
setInterval('test()', 500);
} // ff_QuickForm1660825328_init
function test(){
jQuery('#ff_elem9020').change(function() {
if(jQuery('#ff_elem9020').val() != ""){
bfToggleFields("on","element","bfQuickMode3670667",bfDeactivateField);
}else{
bfToggleFields("off","element","bfQuickMode3670667",bfDeactivateField);
}
});
}
-jQuery('#ff_elem9020').change(function() -> instead ff_elem9020 insert id of your calendar element (please use inspect in console)
-bfToggleFields("on","element","bfQuickMode3670667",bfDeactivateField); -> Instead bfQuickMode3670667 insert name of your checkbox (not title).
visible rules:
turn on element mydummy if yourdummy is something
This code in visible rules should be the same, do not change anything.
Note. Please in end, turn off the element checkbox in the advanced option.
Let me know the result!
Regards,
Mirko