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!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nils.destoop’s picture

This should normally be the case. Can you show screenshot from your display settings?

nils.destoop’s picture

Status: Active » Closed (duplicate)

Didn't notice you where using RC-2. If you update to 1.0, this should be fixed.

jami3z’s picture

I 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?

jdufaur’s picture

Hye,

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

RBRIAS’s picture

Subscribe!

jdufaur’s picture

Here are the screenshot :

-manage fields
-manage display
-render node

jdufaur’s picture

Status: Closed (duplicate) » Active

Re active

jdufaur’s picture

Version: 7.x-1.0-rc2 » 7.x-1.0
anthonyjhall’s picture

Fieldgroup 7.x-1.0 with Drupal 7.7 still seems to show the same problem.

Tabs which contain only empty fields always display.

jami3z’s picture

I see dev was updated a few days ago, anyone know if that version has a fix for this issue?

Stalski’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Closed (duplicate)

In 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?

jami3z’s picture

Latest dev fixes the issue for me. cheers

creathing’s picture

I'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

creathing’s picture

Updated ctools, works fine now!