Add option to hide field description (help text)

Created on 2 February 2023, almost 2 years ago
Updated 9 February 2024, 9 months ago

Problem/Motivation

Having arbitrary lenght field descriptions (help text) in a Views table can make this module unusable.
It should be pretty simple for a developer and super useful for a site administrator.. ๐Ÿ™๐Ÿป

โœจ Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kopeboy
  • Status changed to Closed: won't fix 9 months ago
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine

    This module relays on what you have configured in the form mode, ot dea not interact with the widget and only renders it.

    Consider hiding description on the form mode level

    See this issue as a reference:
    https://www.drupal.org/project/editablefields/issues/3390633#comment-154... โœจ Ability to hide field label in views Active

  • Status changed to Active 9 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly kopeboy Milan

    No: we cannot define the field's help text for each form mode.
    And you do build and edit the form in your code, e.g. removing the title

    // Remove the title of the field.
      $instance['label'] = '';
    

    , so would it be possible to remove the help text element as well?

    Otherwise the only workaround would be to hide it with CSS.. if there is a class to target.

  • Status changed to RTBC 9 months ago
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine paulrad

    Hi, guys!
    I've worked on the requested functionality in the module that addresses the entity form issues (previously labels and now help text too).

    Please, consider using it in your project in such cases.
    Project - Entity Form/Display Field Label โ†’
    Issue - Add possibility to alter field's help text (descriptions) โœจ Add possibility to alter field's help text (descriptions) Needs review

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine

    Perfect, Entity Form/Display Field Label can now handle both title and description.
    Looks like we do not need $instance['label'] = '' this code and can relay on external modules to interact with the wigets.

  • Status changed to Fixed 9 months ago
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine
  • Status changed to Fixed 9 months ago
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine

    $instance['label'] = '';

    This code was in drupal7, it is not supported by the maintainers, so we can skip this unless comunity implement solutions for title/description for d7 version

Production build 0.71.5 2024