Contact Form 7
[resolved] Set line limit in textarea tag? (2 posts)

  1. chappie
    Posted 2 years ago #

    I have a textarea field which by default gives me 10 blank lines of text and I would like to make the field shorter, ie limit it to 6 blank lines. If I understand the (size)/(maxlength) tag option, the example given (40/100) relates to character count and not to line count - but this is an address field where users will enter different line lengths broken up by carriage returns, so a character limit doesn't work (anyway, the width of the input area is plenty long enough for the longest place or street names).

    If I can't set a 6-line limit in the tag, should I simply target the visible height of the input area with CSS so that the window is only 6 lines high?

    Thanks for any help.


  2. chappie
    Posted 2 years ago #

    I guessed that no reply meant RTFM and I thought I had - but for some reason I missed the answer, which was to add x6 to the textarea tag.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic