I use this module on one of my sites to create a form with conditional questions. Answer one question, and it'll reveal one of three based on that answer. Works great.
We also have the form set to "save draft" between pages (it's over 30 pages long) and also enabled the "save draft" button.
When we click "Save Draft" on a page with hidden sub-questions, all the questions are revealed.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | webform_conditional-fix_js_settings_error-1541188-7.patch | 3.26 KB | tedbow |
| #3 | node-export-webform-conditional-1541188.node_code.txt | 5.65 KB | john franklin |
Comments
Comment #1
john franklin commentedBy "all questions" I mean all components that are defined on that page. Components from other pages are not revealed.
Comment #2
tedbowCan you export a simple form that has this problem? So I can debug. Instructions here: http://drupal.org/node/add/project-issue/webform_conditional
Comment #3
john franklin commentedSample form attached.
Comment #4
tedbow@John Franklin,
Thank you for including the export. Just what I looking for!
I don't have the problem though. When I click submit it doesn't show any of the other items.
Things to try(from create issue page):
Let me know if any that fixes your problem
Thanks
Comment #5
john franklin commentedTry clicking "Save Draft" instead of submit. This form was created on a bare bones install of Drupal 6.25 with web form, webform conditional, node export and devel as the only modules installed and using garland as the theme.
Comment #6
tedbow@John Franklin, sorry I didn't notice this was a 6.x issue(the form actually imports into Drupal 7 no problem).
Yes, I see the problem you are experiencing now. Again thanks for the export. I will take a look and see if I can figure it out.
Thanks
Comment #7
tedbow@John Franklin I finally got back to this.
I have attached a patch that is against the most recent dev version.
Please test out if you can. Thanks
Comment #8
john franklin commentedI'll try again when I get home, but that patch seems to force everything to be visible at all times.
Comment #9
belong@mywebworkshop.com commentedI am having this problem in 2015.
If you save a draft of the form, the conditional fields are mostly displayed. Not always.
I would have thought a 3 yr old patch (2012) would have been rolled into the current version 6.x-1.2 which has a 2013 date, but maybe not.
Sometimes a page refresh hides them. Switching the answers on and off makes no difference.
I am not familiar with patching, so not sure if the patch in #7 can be safely applied to 6.x-1.2 or not.
Help appreciated.
Cheers
Miriam