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.
Conditional fields doesn't work when your conditional field is a HS one - I know HS is kind of buggy but it would be lovely to have the functionality in d7 at some point.
Meanwhile it works without using the HS widget but now I'm inflicting a very large and heavily nested select list on my users :(
My usecase is a shopping type site where I want to show things like size and colour only in the clothing section of a reasonably large list of categories that also include electronics, gardening etc.
Comments
Comment #1
Rontero CreditAttribution: Rontero commentedSubscribing
Comment #2
RumpledElf CreditAttribution: RumpledElf commentedActually scratch this request - have written a new module that *does* have perfect compatibility with conditional fields - it was written with CF in mind.
Really need to get this new module either onto d.o as its own project or somehow get it as a fork/new version of HS. Wish me luck. Its a lovely multi-level taxonomy select widget/form element that has a different UI but same functionality as the HS taxonomy select widget. PM me if you're desperate for this functionality, I'll email you a copy.
Comment #3
rwilson0429 CreditAttribution: rwilson0429 commentedGlad you were able to create a solution. But, please don't 'scratch' your request. It is a much needed feature since HS (although buggy) has a respectable number of installs and, is more flexible than the core select list. It seems logical that modules that create or manipulate fields but, provide different functionality in D7 would all be compatible with each other. I'm just getting my feet wet with Drupal but, from all that I've read, the change to entities and making everything fieldable provides greater opportunities and flexibility. So, it seems reasonable that CF and HS somehow close the incompatibility gap.
I'm not a coder but, I want to get up to speed so that I can help with issues such as this.
Comment #4
docans CreditAttribution: docans commentedHi, I am facing the same problem with conditional fields and Hierarchical Select working together. I will be glad if you can email me a copy or give me a link to access you new wonderful module
Comment #5
Matthieub CreditAttribution: Matthieub commentedHi,
I have to face the same issue for my website.I am also interested in your module giraffian.
thx
Comment #6
end user CreditAttribution: end user commentedHS compatibility would be nice. It also has the same issues with Term Reference Select. This would save me from having multiple content types and vocabs.
Comment #7
antoniotorres CreditAttribution: antoniotorres commentedSubscribing
Comment #8
antoniotorres CreditAttribution: antoniotorres commentedWilling to sponsor the addition of this feature. E-mail me at antonio@bsidestudios.com if interested
Comment #9
anektod CreditAttribution: anektod commentedConditional fields module doesn't work with Hierarchical select module
is there patch ?
Comment #10
mackpipe1 CreditAttribution: mackpipe1 commentedI have the same problem with the HS and CF D7 someone can help me please, or if possible an idea of how to do the same functionality of HS with another module, and if it is compatible with CF
thanks
Comment #11
Kristina Katalinic CreditAttribution: Kristina Katalinic commentedActually I found CF to work with HS but you must enter numeric value of the dependee. For Example if you want to display the field only when term "example 1" is selected you should check what is the numeric value of that field in the database ...lets say the value is 7.... That's all you need to enter an it worked for me
Comment #12
mackpipe1 CreditAttribution: mackpipe1 commentedI can not understand, and I tested having a field of taxonomy Select control normal core and field dependence of I works perfect. reviewing the option value assigned to hand a value in the field dependence of this works perfect for defcto select control, but over this field HS (Hieralchical Select) and does not work, can you guide me or tell me as you did for you work, you do not understand what you mean by the value of the database ... That table is talking about? because for example in my case ... the term of the taxonomy I'm using is the second level, and the id of the term is "63" the same value appears in the option value select Default control. and HS also appears in the second level, but does dependency.
You can help me or explain to me how it was run please. I carry a lot of time trying to solve it and still can not get
thanks
Comment #13
Kristina Katalinic CreditAttribution: Kristina Katalinic commented@mackpipe1
I am afraid I am having trouble understanding you mate. For me it worked exactly as described above
Comment #14
jwjoshuawalker CreditAttribution: jwjoshuawalker commented@Mario Baron
I'm eager to try your solution, but I'm curious which version of Conditional Fields you are using because the rest of us over here: http://drupal.org/node/1542706 can't get Conditional Fields to work at all (in the sense of hiding / showing fields & the data actually saving).
If you are using an unaltered 7.x-3.x-dev, do you by chance know which commit date yours is?
Comment #15
jwjoshuawalker CreditAttribution: jwjoshuawalker commented@Mario Baron
Well, using the direct input method (e.g. "All these values" / "Any of these values") does make my other conditional fields work properly: show/hide and data being saved, but it still isn't working with HS.
Comment #16
Alexander Hadj Hassine CreditAttribution: Alexander Hadj Hassine commentedSame here.
Please make CF compatibility for HS
Comment #17
jramby CreditAttribution: jramby commentedHi,
I just want to know if someday this issue will have any avhievements on a near / far future?
Thanks
Comment #18
Orkut Murat YılmazSame here. Subscribing.
Comment #19
peterpoe CreditAttribution: peterpoe commentedWould be a nice feature, but certainly this is not a critical bug.
I would postpone the issue since Hierarchical Select for Drupal 7 is still in alpha... But I don't want to discourage anyone willing to work on the integration, which I would happily review.
Comment #20
quironHi all,
I have the same problem!And I have found a solution that works nice for me, i tell it if someone can be useful.
Using this module: https://github.com/juliquiron/drupal-sync_taxo_fields I replicated the taxonomy field and configured the module and conditions, also installed the Trem reference tree (http://drupal.org/project/term_reference_tree).
The result is nice taxonomy selection effect (Term reference tree) and the conditional working. Its not a compatibility with HS and does not use AJAX but works nice and solved my problem.
I hope can be useful for someone.
Comment #21
micromegas CreditAttribution: micromegas commented...
Comment #22
baba310 CreditAttribution: baba310 commented@ #20, quiron
Hi!
it is not working with
I am using
Drupal: 7.24
Conditional Fields: 7.x-3.0-alpha1
Term Reference Tree: 7.x-1.9
also tried: Term Reference Tree: 7.x-1.10
there was no issue in setting master and slave term reference field and dependent field.
However dependent doesn't appear in node edit form when tern tree widget (master) is used to select the term in edit form.
any idea what may be wrong in this.
Comment #23
pinkonomy CreditAttribution: pinkonomy commentedSame think with Simple Hierarchical select ,it doesn't work with Conditional fields...Any suggestion?
Comment #24
Summit CreditAttribution: Summit commentedHi,
For me Hierarchical Select is not working either....what alternatives are there to be able to select a hierarchical list like:
- Chooice
A
----1
----2
B
----1
----2
----3
Thanks a lot in advance for your reply!
Greetings, Martijn
Comment #25
thomas1977 CreditAttribution: thomas1977 commentedAny news? Same problem here. Would be great to have CF and HS working together!
Comment #26
msamavi CreditAttribution: msamavi commentedAny update?
Comment #27
Gaurav_drupalIf you are not likely to stick with hierarchical select, switch to Client Side HS
module. This has solved my problem. It works similar to Hierarchical select and also compatible with conditional fields.
Comment #28
sarfraz742 CreditAttribution: sarfraz742 commentedI have the same issue that HS and CF were not working together. But thanks Gaurav_drupal (#27) for your solution is perfect working for me.
Comment #29
RAWDESK CreditAttribution: RAWDESK for Colruyt Group Services commented@Gourav_drupal,
Thanks for the useful reference to the cshs module which could have solved my use case.
Only problem is, i need the same clientside behaviour to work on a webform select component, with prepopulation from a hierarchical taxonomy term list.
Is this possible ?
Comment #30
Hardrocker CreditAttribution: Hardrocker commentedIts been 6 years and this problem still persists. I am trying to accomplish the same task using CF and HS without any success. I also tried CSHS as suggested in #27 to no avail. Has anyone had much success with CSHS?
Comment #31
RAWDESK CreditAttribution: RAWDESK commentedSwitch to webform_shs. Worked for our uses cases.
Comment #32
x.flimon@gmail.com CreditAttribution: x.flimon@gmail.com commentedSuscribing !
Comment #33
Road Kill CreditAttribution: Road Kill commentedClient-side hierarchical select plays well with conditional fields.
https://www.drupal.org/project/cshs
Comment #34
skylord CreditAttribution: skylord commentedIf anyone's insterested - you can test patch from #1301428-5: HS don't trigger a conditional field