Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
output.jpg | 18.91 KB | causalloop | |
laptoptype.jpg | 61.7 KB | causalloop | |
laptop.jpg | 50.5 KB | causalloop | |
webform.jpg | 28.25 KB | causalloop |
Comments
Comment #1
causalloop CreditAttribution: causalloop commentedanyone?
Comment #2
tedbowSorry 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
Comment #3
causalloop CreditAttribution: causalloop commentedThanks 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. :-/
Comment #4
causalloop CreditAttribution: causalloop commentedlooks 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.
Comment #5
causalloop CreditAttribution: causalloop commentedOk, 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?
Comment #6
causalloop CreditAttribution: causalloop commentedstill lost here...
Comment #7
tedbowSorry, 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.
Comment #8
densolis CreditAttribution: densolis commentedHi,
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
Comment #9
general_ludd CreditAttribution: general_ludd commentedThe 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.
Comment #10
general_ludd CreditAttribution: general_ludd commentedI 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.
No errors in Firebug or in the logs.
Comment #11
densolis CreditAttribution: densolis commentedgeneral_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