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.
Hello,
Is it possible to add new feature on fieldgroup for this case:
Hide tabs and fieldset when fields inside are empty on view node.
Thanks in advance!
Comment | File | Size | Author |
---|---|---|---|
#6 | structure1 manage field.jpg | 602.25 KB | jdufaur |
#6 | structure1 manage display.jpg | 507.63 KB | jdufaur |
#6 | render view.png | 205.38 KB | jdufaur |
Comments
Comment #1
nils.destoop CreditAttribution: nils.destoop commentedThis should normally be the case. Can you show screenshot from your display settings?
Comment #2
nils.destoop CreditAttribution: nils.destoop commentedDidn't notice you where using RC-2. If you update to 1.0, this should be fixed.
Comment #3
jami3z CreditAttribution: jami3z commentedI have 7.x-1.0 installed but my tabs are still displaying even if the fields inside are empty. Are you referring to the latest dev version?
Comment #4
jdufaur CreditAttribution: jdufaur commentedHye,
I have a claer instal drupal 7.4 with Fieldgroup 7.x-1.0.
But the tabs are still displaying even if the fields inside are empty.
In manage field section of my content type "property" , i added a first horizontal tabs group. Inside it, i added three tabs items called "main Building" + "Building" + "land". some fields within "main Building" Tab have to be required but not for all fields that found within the two another tabs like "Building" and "land". In this case, if we leave all fields blank for one of them tabs, we'll see it on the node render view. The empty tab appears on view mode and can be clicked by the end user.
When all fields within the tab are blank, it oughtn't go to display in view mode.
That runs well when there are no fields in a tab, it does not appear. But in the case above is there empty fields and the tab is displayed anyway.
I hope i'm clear in my demonstration?
Thanks
Comment #5
RBRIAS CreditAttribution: RBRIAS commentedSubscribe!
Comment #6
jdufaur CreditAttribution: jdufaur commentedHere are the screenshot :
-manage fields
-manage display
-render node
Comment #7
jdufaur CreditAttribution: jdufaur commentedRe active
Comment #8
jdufaur CreditAttribution: jdufaur commentedComment #9
anthonyjhall CreditAttribution: anthonyjhall commentedFieldgroup 7.x-1.0 with Drupal 7.7 still seems to show the same problem.
Tabs which contain only empty fields always display.
Comment #10
jami3z CreditAttribution: jami3z commentedI see dev was updated a few days ago, anyone know if that version has a fix for this issue?
Comment #11
Stalski CreditAttribution: Stalski commentedIn dev it should work all the way.
Please don't change the version to something lower. That version won't have that fix, but dev already has. Please test on dev!!
So @jdufaur , @anthonyjhall; @jamienotweet : could you tell me if the problem IS solved in dev?
Comment #12
jami3z CreditAttribution: jami3z commentedLatest dev fixes the issue for me. cheers
Comment #13
creathing CreditAttribution: creathing commentedI'm having the same problem.
The latest 7.x-1.0 version worked fine, except for the 'not hiding when empty'-problem.
I've now installed the dev version but having a fatal error when adding a group field:
Fatal error: Call to undefined function ctools_export_crud_enable() in /home/thingtes/public_html/basin/sites/all/modules/field_group/field_group.field_ui.inc on line 613
Comment #14
creathing CreditAttribution: creathing commentedUpdated ctools, works fine now!