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

edited November 2019 in Questions
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.image

Comments

  • JG GBCJG GBC Member
    edited February 2017
    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
  • edited November 2019
    Beautiful.   That worked perfectly.

    Thank you very much.
  • Paul HealdPaul Heald Member
    edited March 2017
    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
  • Paul HealdPaul Heald Member
    edited April 2016
    you have to be pretty quick around here!
    :-)
  • Zach McElrathZach McElrath Skuad
    edited March 2017
    Or you can use the "Label above Field" Display mode on the Field Editor, and change the Label to a single space, e.g. " ".
  • Rob HatchRob Hatch Skuad ✭✭
    edited September 2016
    Zach for the win! 
  • edited November 2019
    Thanks everyone for the assistance.  I now have this working with two solutions (CSS or  Field Editor settings).
  • AvinashAvinash Member
    edited December 2016
    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.
Sign In or Register to comment.