WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. chappie
    Member
    Posted 3 months 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.

    https://wordpress.org/plugins/contact-form-7/

  2. chappie
    Member
    Posted 3 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic