Hi,

I have webform installed with no only a few extra modules ("webform_term_options").

I use simple conditional logic with nested fieldsets.

No conditional logic is working, even the simplest one :(

How can I solve this ?

I always get so frustrated in Drupal for such things ...

Comments

Ananda created an issue. See original summary.

Liam Morland’s picture

Category: Bug report » Support request
Priority: Major » Normal

Try disabling webform_term_options to see if that is the problem. Showing and hiding fieldsets with conditionals should work.

Ananda’s picture

I can't disable webform_term_options-module, as there are lots of reusable radio-options fields I need...

Liam Morland’s picture

I mean as a test to see if that is the problem.

Ananda’s picture

Hi,

Sorry, you're right.
I added a manual radio box element on that form, but still no conditionals work.

On another new form, the conditionals do work (there are no webform_term_options there)

Liam Morland’s picture

Try adding a webform_term_options to the form that is working. If it breaks, that strongly suggests that the problem is with webform_term_options.

Ananda’s picture

I added a "webform_term_options" and the other form stil had working conditionals.

But on my other form, all elements which need conditional logic are embedded in 3 layers of fieldsets. Maybe that could cause the issue ?

Liam Morland’s picture

Yes, it could be. It will take some experimentation to find the minimal case which reproduces the problem.

Ananda’s picture

Yes, it could be. It will take some experimentation to find the minimal case which reproduces the problem.

You were right.

I looked for the "minimal situation" where the standard webform conditionals still work. And I tested that this is when the fields are embedded in maximum two "fieldset wrappers".
My fields with conditional logic where wrapped in three "fieldset wrappers", and this made the "webform conditionals" stop working
I don't know why ? ....

So I made another form, without three level wrapped fieldsets, and maximum two wrappers around the webform fields, and this works :)

So thanks for the help, this is solved !

Ananda’s picture

Status: Active » Fixed
Liam Morland’s picture

Fieldsets should be able to nest arbitrarily deep. If it is not working for three or more, that is a bug. If so, please steps to reproduce the problem.

Ananda’s picture

Hi Liam,
Thank you for your concern.
Three or more leveled fieldsets do not work on my webform.

If so, please steps to reproduce the problem.

Could you elaborate on how I could provide you with steps to reproduce this "issue" ? It could be that this is only on my own configuration, with my own set of modules and techniques used.

Liam Morland’s picture

If there is a bug in Webform, I would like steps to reproduce so that it can be fixed. If it is something special about your configuration, it is up to you to fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.