Skip Navigation

[Resolved] How do I set the number of rows in a multiple lines field?

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to change the number of rows (default is 5) of multiline field?

Solution:
You can do that using some CSS, we can’t modify html generated by CRED directly, but CSS will do similar thing. Add the following CSS to your theme’s style.css file or CRED >> CSS editor or Custom CSS section:

textarea[name="wpcf-learning-point-1a"] {
  height: 350px;
}

Relevant Documentation:
Related ticket: https://toolset.com/forums/topic/cred-multiline-input-field-size/

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by stephenO-3 7 years, 2 months ago.

Assisted by: Noman.

Author
Posts
#563116

I am trying to set the number of rows in a multiple lines field. By default it is set to 5. When i inspect the front end form i see this:
<textarea id="cred_user_form_1959_1-textarea-1-1503561608" name="wpcf-learning-point-1a" rows="5" cols="1" class="wpt-form-textarea form-textarea textarea textarea" data-wpt-type="textarea" data-wpt-id="cred_user_form_1959_1_cred_user_form_1959_1-textarea-1-1503561608" data-wpt-name="wpcf-learning-point-1a">p1a</textarea>

How can i change the default number from 5 to 10 for example?
Kind regards,
Steve

#563143

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Pat,

Thank you for contacting Toolset support. You can do that using some CSS, we can’t modify html generated by CRED directly, but CSS will do similar thing. Please add the following CSS to your theme’s style.css file or CRED >> CSS editor or Custom CSS section:

textarea[name="wpcf-learning-point-1a"] {
  height: 350px;
}

You can modify the height as needed.

Related ticket: https://toolset.com/forums/topic/cred-multiline-input-field-size/
Thank you

#563172

Thanks Noman!