Implementing "Hide Label" as checkbox in field configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1707

    #1

    Implementing "Hide Label" as checkbox in field configuration

    Hello, I use some extensions, where there is a checkbox in the field configuration to hide the label of that field, which is kind of handy before all in text-field (text, textbox, text editor). I often use text fields for hints or non-editable fields. I know, that I can hide the label in the layout json, but it would be very practical to have this in the field configuration.
    How would I implement that for fields in update safe way without having to do it in the json-file?
  • Marcel
    Junior Member
    • Jul 2025
    • 6

    #2
    Hi,

    when I understand that correctly, you want to hide the label of specific fields? You could just keep that label empty (Hidden space like from this website: https://www.editpad.org/tool/invisible-character)
    Interesting is, if you don´t set that field to read only the checkbox is flipping up and down if you hover it If you se it read only it´s not flipping. In the Edit Form it´s not flipping at all.

    But on the other hand you could just use the Tooltip Text for each field instead creating another field to show a hint.

    I hope that helps a bit?

    Cheers


    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1707

      #3
      Marcel, with reason you cannot leave the label empty. If you leave it empty it sends the alert: "invalid data record", as the label is mandatory. If it would be possible, imagine the mess in your entity with some field labels empty, not even in the backend you would see that field.
      There is a json paramater "noLabel", which you can set to true, and then the label would not be displayed in the frontend.
      The proposal with the tooltip is not really working, as the user explicitly has to click the tooltip. I have hints in some places, which are important during workflow to pay attention to.
      I am working on an extension to make displaying a checkbox in the field configuration to hide the label. But still did not get it to work.

      Comment

      • Marcel
        Junior Member
        • Jul 2025
        • 6

        #4
        Originally posted by shalmaxb
        Marcel, with reason you cannot leave the label empty. If you leave it empty it sends the alert: "invalid data record", as the label is mandatory. If it would be possible, imagine the mess in your entity with some field labels empty, not even in the backend you would see that field.
        There is a json paramater "noLabel", which you can set to true, and then the label would not be displayed in the frontend.
        The proposal with the tooltip is not really working, as the user explicitly has to click the tooltip. I have hints in some places, which are important during workflow to pay attention to.
        I am working on an extension to make displaying a checkbox in the field configuration to hide the label. But still did not get it to work.
        shalmaxb Thank you for the clarification!

        Comment

        Working...