Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
It would be very nice if this were compatible with fieldgroup tabs and the jstools tabs module.
Currently, tabs are not hidden and the tabs don't work with a coditional field on the form.
Comment | File | Size | Author |
---|---|---|---|
#14 | tabs-cf-example.jpg | 30.47 KB | peterpoe |
Comments
Comment #1
geek-merlin+1 for that. subscribung.
Comment #2
peterpoe CreditAttribution: peterpoe commentedPostponing all compatibility with non-core cck modules to future releases.
Comment #3
Flying Drupalist CreditAttribution: Flying Drupalist commentedSubscribe
Comment #4
InternetDevels CreditAttribution: InternetDevels commentedsubs
Comment #5
farald CreditAttribution: farald commentedSubscribing, this would be exellent!
Comment #6
xqbzzr CreditAttribution: xqbzzr commentedsubscribe!
Pleeaaze!
Comment #7
Miria CreditAttribution: Miria commentedSubscribe. Really need; would love. :)
Comment #8
Bilmar CreditAttribution: Bilmar commentedsubscribing - would really like to explore this setup if it becomes available and would help with testing.
Comment #9
peterpoe CreditAttribution: peterpoe commentedPlease use the 6.x-2.x-dev branch to test compatibility fixes.
Comment #10
rconstantine CreditAttribution: rconstantine commentedseems to work.
Comment #11
grasmash CreditAttribution: grasmash commented@rconstantine: are you saying that the dev version can conditionally hide fieldgroups? I've downloaded and installed 6.x-2.x-dev and can't seem to find that functionality.
I would love to be able to use this module to conditionally hide entire fieldgroups. Are there plans to implement this functionality?
In the meantime, I took a programmatic approach to the problem. In case anyone else needs some help, I wrote a quick blog post on how to use a custom solution:
http://www.grasmash.com/node/47
Comment #12
peterpoe CreditAttribution: peterpoe commented#11: yes fieldgroups are controllable, you can set up the controlling field from a fieldgroup's settings page.
As for Fieldgroup tabs, the only problem left is that tabs.js creates the tabs outside conditional field's wrapper, so the titles are never hidden. But nothing can be done about this, so marking this as fixed.
(truth is: I wanted to get rid of the oldest open issue :)
Comment #13
bryancasler CreditAttribution: bryancasler commentedI know that fieldgroup by default will not show an empty group. That only seems to become a problem when we start hiding/showing content after opening the node. Is there anything that the fieldgroup module istelf could do that would allow it to check on form changes and adapt accordingly? Maybe this was never a problem to be solved by conditional fields.
*Update: Just looked through the fieldgroup issue and and this is already being talked about #1131968: Fieldset displayed even if there is no content
Comment #14
peterpoe CreditAttribution: peterpoe commentedThe problem here is with Javascript, as you can see in the example image below. tabs.js creates the tabs outside the conditional fields wrapper.
Comment #15
bryancasler CreditAttribution: bryancasler commentedThanks for the reply Peterpoe,
On a side note is this something that could be addressed in D8 development so that such a system could exist if someone were to develop it?
Comment #17
Jawni CreditAttribution: Jawni commented---double post---
Comment #18
Jawni CreditAttribution: Jawni commentedHi guys, I'm commenting on this thread because I have a similiar problem that I can't solve
Here's what I'm trying to do:
You want to register a football player and in the registration form, at first, should only show a list of checkboxes:
GK ( )
DEF ( )
MF ( )
ST ( )
Now, I created 4 fieldsets with atributes for each position (GK Attributes, DEF Attribtues, etc). And I created the dependencies. If you check "GK" there will appear the respective attributes to fill. But if I don't check it the fieldset is still there, despite being empty.
I want each fieldsets only to appear when the respective box is checked.
How can I pull this off?
Thanx and great work
Comment #19
FranckV CreditAttribution: FranckV commentedHi, this functionality is essential : just like Conditional Fields participates in the organization of the fields in the form, group fields do as well. The case when both are used is quite natural.
Great module!
Cheers
Comment #20
carajito CreditAttribution: carajito commentedWill be great
Comment #21
charlie-s CreditAttribution: charlie-s commentedI'm also looking for this. In the very least we'd like to display text in the empty tab so that the user understands that there are "currently no applicable fields" or something like that. I imagine if we're able to do that then we'd be 1 step away from hiding the tab altogether, although hiding it may make it difficult to come back.
Anyways, I've been trying to do this by listening to the conditional fields events provided in conditional_fields.js but am not having any luck in getting these to fire whenever a tab's contents are updated, so I'm a bit confused as to where to go next. Here's an example:
I'm seeing these run on page load but not on conditional fields update. Is there something else I can listen for?
Comment #22
zebradog CreditAttribution: zebradog commentedSubscribing - we're running into a small snap that's similar. For whatever reason it's not hiding one of our field_collection fields. Both the dependee and dependent are in the same field_group_section
Comment #23
Dom. CreditAttribution: Dom. commentedSubscribe too ! Great and very usefull module otherwise !
Comment #24
colanThere's already code in #1161314: Add basic Field Group support for ANDing conditions, and it can be backported there once committed to D8.