Problem/Motivation

In D7 I created a normal webform and made it available as a block. I embedded the form as a block in the footer so it would be available globally on the site. I figured out having a webform embedded as a block breaks the webform conditional fields (they always stay visible because the style="display: hidden" never gets applied to the form element). Once I disable the webform block in the footer the conditional fields in the webform node work again.

This is a problem with the latest version of Webform Conditional 7.x-1.0-beta1 only. I'm using Webform 7.x-3.18.

Original report by jsedwick

// Text of original report here.

Comments

jsedwick’s picture

Unfortunately, I entitled this issue similarly to other issues being investigated even though it may be unique. It could be related to this issue: http://drupal.org/node/1311964, however, the webform in my block is a simple form and isn't hiding any conditional fields (which is a little different from the "Not working when multiple forms on the same page" issue).

simone960’s picture

I encountered the same problem when webform is in block. It didn't work well, the field will always display. Please look into it.

tedbow’s picture

Status: Active » Postponed (maintainer needs more info)

If you want help on this please the instructions here http://drupal.org/node/add/project-issue/webform_conditional
carefully and provide as much information as you can as well as an webform export.

Thanks

simone960’s picture

Just a correction here. I realised my problem is actually with "Not working when multiple forms on the same page" - http://drupal.org/node/1311964. When there's 1 form block displayed, it works well. When I placed 2 forms at the same page, the top one will work. Not the other. This problem also exist in webform 7.x-4.0-alpha6.

daggar’s picture

Issue summary: View changes

I ran into this problem with the 6.x branch.

Partial fix: you can get the main form (displayed on the webform page, not in a block) working by by making sure that all the field keys for conditional questions were unique-- both for the field being displayed conditionally, and the component that controls it. Note if you update a field key, you need to update the conditonal key value.

Hope this helps.