Compatibility with hierarchical_select
olemsa - October 11, 2009 - 11:34
| Project: | Conditional Fields |
| Version: | 6.x-1.0-beta2 |
| Component: | Compatibility w/ other modules |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
Simple patch to get hierarchical_select fields to work as a controlling field.
Havent testet it much, but works for me.
| Attachment | Size |
|---|---|
| conditional_fields_hierarchcial_select.patch | 1.95 KB |

#1
Thank you for this patch.
I've patched Conditional Fields 6.x-1.0-beta2 and use Hierarchical Select 6.x-3.x-dev (from 2009-Oct-02) with Content Taxonomy 6.x-1.0-rc2 on Drupal 6.14.
My approach is the following - that you better understand if I tested your patch correctly:
The user should be able to choose his/her relationship status like on facebook.
I've created a taxonomy vocabulary "relationship status" with following terms and nestings:
1. I'm single
2. I'm taken
- Is your partner registered on mysite.com? (Hierarchical Select label)
- yes
- no
3. I'm engaged
- Is your partner registered on mysite.com? (Hierarchical Select label)
- yes
- no
4. I'm married
- Is your partner registered on mysite.com? (Hierarchical Select label)
- yes
- no
Every term "yes" and "no" is the same term but only assigned to multiple parent terms (taken, engaged, married) - I hope this is not a problem in this case/for this patch.
I use Content Taxonomy (as CCK field) for this approach - Hierarchical Select works awesome with that and I hope this is not a problem in this case.
If user has chosen "yes" then a CCK userreference field shoud appear.
If users has chosen "no" then a CCK text field should appear.
My problem is that I can't see the Content Taxonomy Hierarchical Select field as Conditional field for the userreference and text field.
Sorry for this long post but I hope to explain every clear enough to help you with correct testing.
Kind regards,
Stefan
#2
I think this is the correct status.
#3
Hello, any news? It would be great to get this functionality to work.
#4
subscribing