Needs review
Project:
Webform Conditional (Same Page Conditionals)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
1 Mar 2012 at 17:00 UTC
Updated:
12 May 2015 at 18:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tedbow1 problem I see right off is that your 2 fieldsets have the same form key. I won't think webform would let you do this b/c neither feildset is nested. Please make sure each component has a different form key.
Also for testing purposes can you make sure that each of your component has a different label. It makes it confusing to know which component is actually being shown or hidden.
Please export the webform again with these changes and I will take another look.
thanks
Comment #2
Anonymous (not verified) commentedSorry about that - I've reformatted and exported below. The fieldsets beneath each select option are conditionally showing just as they should, but the second conditional field won't show/hide based on the first field.
Thanks so much for your help
Comment #3
tedbowI am changing this to a bug b/c I think I found the problem. I am attaching a patch. If you are able to please try this patch against the dev version and see if this fixes it for you.
It fixed it for me. If anyone else wants to try this patch on any other form I would appreciate it. I want to make sure it doesn't cause any other problems.
Thanks
Comment #4
Anonymous (not verified) commentedI was able to test this on 2 forms (including the one above) and it fixed the issue for me on both.
Thanks!
Comment #5
tedbow@ rclations, thats great to hear. Also if you have any other Webforms that you are working with please test them and make sure it doesn't introduce any unrelated problems. Thanks!
Comment #6
dragon123 commentedThank you very much tedbow it worked for me for webform_conditional-6.x-1.1.
And up-till now doesn't seem to be any problem.
Comment #7
Anonymous (not verified) commented#3 is fine for me in webform_conditional-6.x-1.1, too. I realise this issue is for 7.x-1.x-dev, but the code seems to be the same. Could this be committed and backported?
Comment #8
socialnicheguru commentedEdit: Sorry. I used the wrong version. can't say if it applies or not to 1.x
patch in 3 no longer applies
Comment #9
rooby commentedThe patch no longer applies because this has already been committed to d7.
It has not been added to d6 yet though.
Someone mentioned the patch also works for d6 so leaving status at needs review.