Hi,
what you can try is delete visibility rules from form->Advanced.
And then use javascript and visibility rules:
crosstec.org/en/support/online-documenta...s-in-javascript.html
Make a copy of your original form to test this.
For this you need to have in form->Advanced->Visibility rules:
turn on element mydummy if yourdummy is something
Leave this as it, don't change anything.
Then go on each radio group and make a visiblity if select is"Yes" then turn on what you want, if "No" turn off
Go to each radio group->Advanced->Actionscript->chekc Custom ->check Change:
function ff_radioelem_action(element, action) //where radioelem is the name of the radio group
{
switch (action)
{
case 'change':
vals = '';
opts = JQuery("[name=\"ff_nm_radioelem[]\"]");
for (o = 0; o < opts.length; o++)
if (opts[o].checked)
{
vals = opts[o].value;
}
if (vals=="yes") // here you can add further dependencies
{
bfToggleFields('on','section','sec3',bfDeactivateField);
bfToggleFields('on','element','nameofelement',bfDeactivateField);
}
else
{
bfToggleFields('off','section','sec3',bfDeactivateField);
bfToggleFields('on','element','nameofelement',bfDeactivateField);
}
break;
default:;
} // switch
} // ff_radioelem_action
-radioelem is name of your radio group (not title).
-yes is value of radiogroup (not title)
-sec3 is name of section (not title)
-nameofelement is name of element (not title)
If you want to turn on section then use in bfToggleFields section, if you want to turn on/off element then use in bfToggleFields element
Hope this will help.
P.S: this code:
function ff_Gesundheitsfragen_init()
{
switch (action) {
case 'change':
JQuery(".formError").remove();
break;
default:;
} // switch
} // ff_Gesundheitsfragen_init
can't be there on this way, it can be in actionscript of each element
Regards,
Tihana