Needs work
Project:
Webform Conditional (Same Page Conditionals)
Version:
6.x-1.1
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2011 at 01:20 UTC
Updated:
22 Mar 2015 at 14:00 UTC
Jump to comment: Most recent
Comments
Comment #1
tedbowPlease provide a reason you think it might not be working. Also I suggested patch would be great.
I am focusing on getting this module working with basic Webforms now.
Comment #2
matty77 commentedThis is also not working for me.
Example: I created a "webform layout" container with two fields inside; one of these fields is conditionally dependent on a field outside the container. The observed behavior is not as expected, both fields will be displayed regardless of the condition set in webform conditional. In other words webform conditional is not working on non fieldset containers.
Comment #3
Enzomaticus commentedI have noticed this in 7.x-1.0-beta1 as well. When the dependent field is inside the webform layout container the field it is dependent on has to be outside the webform layout container.
Comment #4
matty77 commentedStill looking for a solution on this if anyone has ideas.
A webform can not be submitted when fields are placed within a "layout_box" and that "layout box" is hidden because of a dependency set up through webform conditional. When the fields are moved out of the layout box they work as they should; meaning when they are hidden it is not mandatory that they be filled to submit the form.
Comment #5
caseyboardman commentedSince it looks like this module is going away, but people other than myself are still using it, I have this quick-and-dirty patch:
Add this code in
webform_conditional_element_after_buildin theif ($was_hidden)block:Comment #6
omerida commentedThis also affects addressfield components
Comment #7
steeph commentedLooks like this came back with the recent Webform update. Conditionals do not work any longer for Layout Boxes.
Comment #8
steeph commentedComment #9
danchadwick commentedPlease don't re-open a old issue for D6 and change it to D7 and move it to a different issue queue. Instead, open a new issue in the webform issue queue and link it to this one using the related issues field.
Even though you changed the version to webform 7.x-4.x-dev, I suspect that you didn't actually try it with the latest dev, but instead tried it with 7.x-4.5. This version has a javascript error might might explain the problem. I don't think there is any code that is specific to fieldsets. It relies on a parent component id to establish the hierarchy. An exception is pagebreaks which receive special treatment.
Comment #10
steeph commentedYou're right. This wasn't a good choice. Thanks for setting it back.
Comment #11
danchadwick commentedMy testing with webform layout shows that the latest dev works fine now.