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.
Im using ubercart + cck atrribute, this show me the fields but not working the conditional script (not load settings and conditional_fields.js)
any fix?
Comment | File | Size | Author |
---|---|---|---|
#4 | conditional-fields-t-shirts.jpg | 97.01 KB | sindbad |
Comments
Comment #1
hacmx CreditAttribution: hacmx commentedany suggest?
Comment #2
drupalnesia CreditAttribution: drupalnesia commentedPlease more detail, which field act as controller and controlled? Which attribute do you use?
Comment #3
gregaltuna CreditAttribution: gregaltuna commentedI'm having the same issue. I have a field where the user picks the "number of subscriptions" they'd like to subscribe to, then a conditional field with qty allowed restrictions based on the number they picked is supposed to display.
What happens in my page, however, is that the "number of subscriptions" field displays AND all the subsequent conditional fields display.
Anyone know how to fix this, or possibly provide a different method for achieving the same?
Comment #4
sindbad CreditAttribution: sindbad commentedI have the same issue but let me explain....
Example: let's say that I sell personalised T-Shirts. On every T-Shirt it must be a text. I want to give the possibilty to the client choose one of the predefined texts, modify it or enter his own text.
The problem is in the product page I see all the predefined texts. I think javascript is no working to hide / show the texts (when I'm testing the article from Add Content it's working fine).
Is there any solution to this?
EDIT: I looked better and the javascript (conditional_fields.js) is not loaded.
Comment #5
peterpoe CreditAttribution: peterpoe as a volunteer commented