Needs review
Project:
Webform Conditional (Same Page Conditionals)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
19 Apr 2012 at 16:27 UTC
Updated:
15 Dec 2019 at 21:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tedbow@seezee, Could provide text form export that has this problem. Instruction are provided here http://drupal.org/node/add/project-issue/webform_conditional
This will make fixing this problem easier. Thank you.
Comment #2
Anonymous (not verified) commentedHere's the export.
Comment #3
tedbow@seezee, thanks for the export. when I import form the date picker is hidden and shown depending on radio buttons. Seems to be working.
Comment #4
Anonymous (not verified) commentedHmm … even on this simple form in my local site, it stopped working if I updated to the beta (rolling back fixes). I checked for javascript errors & don't see any.
Also tested in various browsers w/ same results: current WIN versions of Chrome, FF, Opera, & Safari + IE6 & IE8 w/ & w/o compatibility mode. What next?
Comment #5
tedbowCould be some other module or theme you have enabled is conflicting?
Could try re-importing the form you provided above. Maybe it's working for me b/c the import fixes some error(not likely but you never know)
Comment #6
Anonymous (not verified) commentedOK, I've narrowed down the cause, but don't have a solution: There's a second webform in a block on the page, normally hidden in a tabbed dropdown. Removing the block temporarily eliminates the misbehaviour.
To reproduce: create 2 webforms. In the 1st form, add a block. In the block, type
$block = module_invoke('webform', 'block_view', 'client-block-##'); print $block['content'];where "##" is delta for the 2nd form. Now try adding conditionals to the 1st form — it breaks.
Comment #7
szeidler commentedThank you seezee. You saved me a lot of time debugging this problem. But I do not have a solution for this problem, yet.
It looks, that it has something to do with the new structure of
Drupal.webform_conditional.wrappers = new Object();(webform_conditional.js)and the removed
if (!empty($js_fields)) {...}(webform_conditional.module)Comment #8
tedbowThere are some issue with module and using blocks. I will into it.
Comment #9
tedbowtagging with "blocks"
Comment #10
densolis commentedHi,
This is just a status update. I will have Ted follow up on this.
Dennis
Comment #11
tedbowAdding 2forms1page tag for issues that seem to happen if you try to put 2 webforms in 1 page
Comment #12
tedbowI just commit a related patch here #1704682: multiple webforms on one page do not trigger conditionals (includes working patch).
It should fix the issue with having 2 forms on 1 page
Let me know if this fixes the issue
Comment #13
avpaderno