Having the field label always show in views is redundant in a table view with column labels of the same name, see attached pic. It would be nice to be able to hide the field label is such a situation. Thanks for the great module!

CommentFileSizeAuthor
#7 after.png25.04 KBpaulrad
#7 before.png26.59 KBpaulrad
titles_and_column_titles.png10.73 KBgrabby

Comments

Grabby created an issue. See original summary.

gilmord’s picture

Hi, please try to hide the lable in the display mode you use for the editable fields

I recommend having a separate view mode to use for editable fields, not the "default" one

grabby’s picture

Thanks for that. I did as you suggested. I created a new view mode for editable fields. Then for the two fields of interest I changed the label to “Hidden” and the format to “Editable field”. Then I went to my view and changed the Formatter to rendered entity. Unfortunately, the view mode I created was not an option. Did I mention this is for entity reference fields? My only options were for taxonomy term view modes. The weird thing is that after I changed the label to “Hidden” and the format to “Editable field” for the two fields I wanted, all my disabled fields had their format changed to “Editable field”! All except for the disabled entity reference fields, that is.

joelpittet’s picture

Version: 1.0.1 » 1.0.x-dev

@Grabby I'm running into the same issue. The label needs to be changed on a "form view mode" not a "display view mode". Although it doesn't look configurable (drupal core issue? or needs a module?)

gilmord’s picture

@joelpittet yeah, my bad, it is a form mode indeed

Found this module, but have not tested it:
https://www.drupal.org/project/entity_form_field_labe

Looks like it is capable of hiding labels on form modes:
https://www.drupal.org/project/entity_form_field_label/issues/3151353

I think we should use some eternal/core functionality to handle labels, as this module totally relays on what you have set up in your form mode and does not interact with the widget selected and only renders it based on form mode settings

paulrad’s picture

Assigned: Unassigned » paulrad
paulrad’s picture

Assigned: paulrad » Unassigned
Status: Active » Reviewed & tested by the community
StatusFileSize
new26.59 KB
new25.04 KB

Hi guys, I can confirm that https://www.drupal.org/project/entity_form_field_label project provides requested functionality.
Screenshots attached.

gilmord’s picture

Status: Reviewed & tested by the community » Fixed
gilmord’s picture

Status: Fixed » Closed (fixed)

Thanks @paulrad, closing this issue.