With 7.x-1.0-beta2 conditional submission doesn't work, all webform items display. I had to go back to 7.x-1.0-beta1 for conditional displaying to work normally

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

N Faucher’s picture

Title: 7.x-1.0-beta » 7.x-1.0-beta2 : All webform items display without consideration of conditional submissions
jboeger’s picture

I am having same issue. Everything was peachy yesterday.

Today, all the fields are showing when before only the ones that met the condition. Is there a fix for this?

tedbow’s picture

Status: Active » Postponed (maintainer needs more info)

This issue doesn't have enough information
Please read instructions here: https://www.drupal.org/node/add/project-issue/webform_conditional

decyphex’s picture

Hello,

I am also experiencing this same issue. However, it is not just occurring with 7.x-1.0-beta2, it is also happening with Webform 7.x-4.0-rc6 (Just to make sure this is clear, I do not have the Webform Conditional module installed along with 7.x-4.0-rc6. I have tried both Webform 7.x-3.20 + Webform Conditional 7.x-1.0-beta2 and Webform 7.x-4.0-rc6 separately with similar issues.)

I am creating an inventory request form and it has 4 webform fields initially. One of them is a category drop-down that determines which webform fields appear after it. No matter what selection is made, generally all of the possible fields will display after the drop down, instead of what I have configured to display.

The issue has existed for quite some time. With the recent release of Webform 7.x-4.0-rc6 I was hoping it would be resolved, but it still exists. I know this isn't the Webform issues page, but the issue seems to be more related to just the conditional portion and since the two are now incorporated, I figured I would comment on the already existing issue here as a start.

tedbow’s picture

Please confirm you have done this from the link above:

Also to make sure your problem is caused by this module please try to re-create your problem Webform on a new install of Drupal with only the modules you need, preferably only Webform and Weform Conditional. Also test your form with a stock Drupal theme that comes with core Drupal. Theme code can cause the Javascript code in this module not to work.

decyphex’s picture

The issue is resolved. Turns out I was not using conditionals in Webform 7.x-4.0-rc6 as they were intended to be used. All is well, but it is possible the issue still exists in Webform Conditional 7.x-1.0-beta2?

hughworm’s picture

All is well, but it is possible the issue still exists in Webform Conditional 7.x-1.0-beta2?

Indeed it does!
Caused I think by misformed css ids of the dependent elements. Attached patch fixes it for me.