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.

Comments

john franklin’s picture

Title: Clicking "Save Draft" shows all entries. » Clicking "Save Draft" shows all form components.

By "all questions" I mean all components that are defined on that page. Components from other pages are not revealed.

tedbow’s picture

Can you export a simple form that has this problem? So I can debug. Instructions here: http://drupal.org/node/add/project-issue/webform_conditional

john franklin’s picture

Sample form attached.

tedbow’s picture

@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):

Also to make sure your problem is caused by this module please try to re-create your problem Webform on a new install of Drupal with only the modules you need, preferably only Webform and Weform Conditional. Also test your form with a stock Drupal theme that comes with core Drupal. Theme code can cause the Javascript code in this module not to work.

Let me know if any that fixes your problem

Thanks

john franklin’s picture

Try 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.

tedbow’s picture

@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

tedbow’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new3.26 KB

@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

john franklin’s picture

I'll try again when I get home, but that patch seems to force everything to be visible at all times.

belong@mywebworkshop.com’s picture

Issue summary: View changes

I 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