Is there any way to hide the Label on a Template Field?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
I would like to hide the Label part of a Template Field so the Template data can use 100% of the row and not be shared with the Label data and Template data.  So I don't want a blank Label, I want the label to not be on the page at all, just display the template data.


See below.
Photo of Jeffrey Lawler

Jeffrey Lawler

  • 1,454 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of JG GBC

JG GBC

  • 694 Points 500 badge 2x thumb
Hi Jeffrey

Try this:
.nx-basicfieldeditor-item-label{
display:none !important;
}
If you want to do that just on one particular field, add a class to your field.

.yourClass .nx-basicfieldeditor-item-label{
display:none !important;
}
Cheers
Photo of Avinash

Avinash

  • 1,726 Points 1k badge 2x thumb
I Have the same question. What CSS should i use to hide only one field in the field editor?

I don't understand the word yourClass in the above comment .

can you tell me how to solve the issue.

Thanks.
Photo of Jeffrey Lawler

Jeffrey Lawler

  • 1,454 Points 1k badge 2x thumb
Beautiful.   That worked perfectly.

Thank you very much.
Photo of Paul Heald

Paul Heald

  • 420 Points 250 badge 2x thumb
Create an inline css class with the following code

.hidelabel .nx-basicfieldeditor-item-label{ display:none; }

then on your template add in the css field the following

hidelabel
Photo of Paul Heald

Paul Heald

  • 420 Points 250 badge 2x thumb
you have to be pretty quick around here!
:-)
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Or you can use the "Label above Field" Display mode on the Field Editor, and change the Label to a single space, e.g. " ".
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Zach for the win! 
Photo of Jeffrey Lawler

Jeffrey Lawler

  • 1,454 Points 1k badge 2x thumb
Thanks everyone for the assistance.  I now have this working with two solutions (CSS or  Field Editor settings).