PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Add a line break in the label field?

  1. micronized
    Member

    I would like for my label to be two lines, is this possible? I tried a simple
    in the label field but it simply showed the code.

    Thank you

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  2. micronized
    Member

    This is related, but I would also like to have a link in my label. Is HTML possible in the field labels?

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink
  3. HTML isn't allowed in the field labels. Your best bet is to use CSS and set a specific width on the label to force it to wrap. For example:

    [css]
    body .gform_wrapper form li#field_20_1.gfield label.gfield_label {
         color: red;
         max-width:100px;
    }

    screenshot: http://i.imgur.com/rBSGoht.jpg

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink
  4. micronized
    Member

    Got it, thanks for the prompt response!

    I skipped over the "description" field initially, but I see that the description field takes HTML and I can have it show up beneath the field label. This does what I want it to as far as having links and info beneath the label.

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink
  5. Right on, glad you got it working.

    Posted 11 years ago on Thursday May 30, 2013 | Permalink

This topic has been resolved and has been closed to new replies.