Hi to all,

I'm trying to use this module but without success.

I created a SELECT field (trying all possibility: LIST and RADIO option) and a TEXTFIELD conditional for one KEY value of the previous one, but the field is always showed.

Both fields are Mandatory.

I cleaned the Cache many time but nothing, the TEXTFIELD are always visible.

I have installed also thi modules related to Weform main project:

  • Webform Password Field

Some ideas about?
Thanks, Bye!

Comments

Dayna’s picture

I am also having the same issue. I installed Web conditional on drupal 6 and the conditional field is displayed as I create the fields, and I enter the conditions, but they don't work.

I have Webform 6.x-3.2 and I installed Webform Conditional 6.x-1.1 and Webform Validation 6.x-1.5. I've uninstalled Conditional and Validation and installed just Conditional and flushed the cache. I deleted the webform and recreated it and cleared the cache again. Still nothing.

Any help would be greatly appreciated!!

Dret’s picture

I forgot,

my Webform version is 6.x-3.18.

Bye!

tedbow’s picture

Status: Active » Postponed (maintainer needs more info)

To make addressing issues for this module easier I ask for an export of a Webform for bug issues. Directions can be found here: http://drupal.org/node/add/project-issue/webform_conditional

Please provide an export for this issue.

Also please test with the latest dev version.

Postponing until I get more info

let-1’s picture

I was able to make it work by doing the following:
1. For the Select List, I check "Customize Keys (Advanced). This will give you a numeric key for each option.
2. I then use these numeric keys in the Conditional rules.

cwworks’s picture

Thanks, Ted,

I am having the same issue.

For my project it turned out to be a conflict with CCK Blocks.

DaPooch’s picture

Title: Module seems not working for me on D6 » Module seems not working for me on D6 [CCK Blocks incompatibility]

I'm having troubles too. For some reason it works on the results page of the webform when you try to edit a previously submitted form, but not on the main form itself. I too have CCK Blocks installed. How did you resolve? Were you able to still keep CCK Blocks enabled?

From what I can see by outputting the Drupal.settings.webform_conditional.fields object to console.dir in the browser. The object is doubling up all of the properties into a 2 item array on the main page. So the operator value is coming across as "=,=" and not just "=" as it should. Same goes for cid, css_id and all other properties contained within the fields object. I can confirm that CCK Blocks is causing this issue since disabling it fixes it. Not sure what the correct fix is though, whether its WC or CCK blocks that needs an update.

agence web coheractio’s picture

Status: Postponed (maintainer needs more info) » Needs review

This is caused by node_build_content() called in cck_blocks_block(). This makes webform_conditional_form_alter() to be run twice.

This can be fixed by changing
if (strstr($form_id, 'webform_client_form_') && isset($form['submitted']))
into
if (strstr($form_id, 'webform_client_form_') && isset($form['submitted']) && empty($called_forms))
in webform_conditional.module

Hope that helps

Laurent

DaPooch’s picture

Thanks for the tip Laurent. That did help but now I'm getting a slightly different problem. It looks like if I have a page break in my form between same page conditional elements the JS object being passed to the page is a step behind where it needs to be and so the conditionals wont work until you navigate back a page and then move forward again (or basically just change pages) Something appears to be just a tad off in the code where the $js_fields are being set when there's page breaks but I can't quite pinpoint it. Any ideas?

vistree’s picture

Title: Module seems not working for me on D6 [CCK Blocks incompatibility] » Same problem here

.. with cck_blocks enabled. Used modification from Laurent, which fixed my problem.
An alternative seems to be, to exclude the webform-URLs (paths) inside the existing cck_blocks (admin/build/block)

tedbow’s picture

Title: Same problem here » Module seems not working for me on D6 [CCK Blocks incompatibility]
Status: Needs review » Active

Changing title back: Module seems not working for me on D6 [CCK Blocks incompatibility]

also if some can make a patch that would be appreciated

leisurman’s picture

Thanks, I like this method for the moment:
exclude the webform-URLs (paths) inside the existing cck_blocks.
It work, and you don't alter a module. Can a snippet in template.php accomplish this?