Sorry if this is a duplicate or if i misunderstood something, but I just can't get the conditionals to work. Here's a very basic rundown of what I'm trying to do:

I have a check box called 'Laptop'. When clicked, this checkbox should make two more options (not necessarily checkboxes - could be a listox) appear: Developer and Non-Developer.

I've attached screenshots of what the setup looks like, rather than try and describe it. What am I missing?

CommentFileSizeAuthor
output.jpg18.91 KBcausalloop
laptoptype.jpg61.7 KBcausalloop
laptop.jpg50.5 KBcausalloop
webform.jpg28.25 KBcausalloop
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

causalloop’s picture

anyone?

tedbow’s picture

Sorry tedbow here. Busy as of late.

Check out the demo form. http://www.tedbow.com/content/drupal/webform-conditional-demo-form
There is export text that you can import with node_export module to see how it works.

By your images you have some module(forget which one) that makes adding options easier. Suggest you click "manual entry" when entering option so you know that the key value pairs are(key|value).

Laptop type needs "value" under "Conditional Rules"

If your key value for Laptop is "laptop|Laptop" then put "laptop" in value under Laptop Type Conditions Rules -> value

causalloop’s picture

Thanks for the input tedbow, that isn't working for me and for some reason either the uuid module or node_export (haven't debugged it yet) is breaking and won't load all of its sub modules so I can't import your demo. :-/

causalloop’s picture

looks like Node Export Relation is causing a server error, but its not giving me anything in the log... I guess I'll have to get back to you.

causalloop’s picture

Ok, guess I didn't need that part.

So, I was able to import your demo and your demo doesn't work either. All of the fields are visible. Which probably means something is wonky on my side... Any ideas?

causalloop’s picture

still lost here...

tedbow’s picture

Sorry, missed this.
Are you using a contributed or custom theme? I would switch to theme came with Drupal 7 and see if that helps any.

densolis’s picture

Issue tags: +waiting-for-user

Hi,

I am helping Tedbow with this module and will be talking with him in the new few days. What is the status of this issue?

Dennis

general_ludd’s picture

Component: Code » Miscellaneous
Category: support » bug

The field to which the condition is assigned is showing up regardless of the status of the selection of the "Safe key" value from the target field. I have several multi-page forms. This problem is consistent across all of them. I have no other webform or other related or similar modules (such as select or other) installed or running. No errors in log. I'm guessing something is conflicting with the jQuery/javascript for this module.

general_ludd’s picture

I should add that the conditional fields are on the same page as the parent (trigger) field. I had select or other module installed at one point, but removed it when I realized there was incompatibility. It seems that as soon as select other was installed, it broke this module. But the following tasks failed to restore fuctionality.

drush dis select_or_other webform_conditional;
drush pm-uninstall select_or_other webform_conditional;
drush cc all;
rm -rf ./sites/default/modules/select_or_other;
rm -rf ./sites/default/modules/webform_conditional;
drush dl webform_conditional;
drush en webform_conditional;

No errors in Firebug or in the logs.

densolis’s picture

Assigned: Unassigned » densolis

general_ludd,

From reading your previous post, it appears that you un-installed webform_conditional, downloaded it, and enabled it. Correct?

Also, what do you mean by "the following task files to restore functionality"?

Can you please be a bit more specific or can you please give me an example of two fields that are not working including screen shots of the definition of both fields. Or better yet, can you please export a node with this issue and attach it to your next comment? Here are the instructions for exporting a node.

You can look at the following link for a working example.

Dennis