Skip Navigation

[Resolved] How can I define the number of rows inside a cred_field textarea?

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

Problem:
How can I define the number of rows inside a cred_field textarea?

Solution:
There is no native option supported to control the textarea number of rows.

But you can I think easily achieve by adding some custom CSS to your form's CSS box.

textarea[name="wpcf-cand_address"] {
  height: 350px;
}

where:
replace wpcf-cand_address with your original field slug.

Relevant Documentation:

This support ticket is created 5 years, 3 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by alixB 5 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1342803

I'm trying to set the number of rows for a textarea to 3. The default is currently to 5.

My cred_field shortcode is this one
<div class="form-group">
<label>Adresse</label>
[cred_field field='cand_address' force_type='field' class='form-control' output='bootstrap']
</div>

I checked the documentation :
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field

But I dont see how I can adjust this parameter. Can you help me with this one?

#1342813

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no native option supported to control the textarea number of rows.

But you can I think easily achieve by adding some custom CSS to your form's CSS box.

textarea[name="wpcf-cand_address"] {
  height: 350px;
}

You should try to adjust the height attribute according to your need.

#1342955

Ok so I can only modify this using CSS.

Thank you.