Skip Navigation

[Gelöst] Limit characters

This support ticket is created vor 8 Jahre, 3 Monate. 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
- 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 3 Antworten, has 2 Stimmen.

Last updated by Minesh vor 8 Jahre, 3 Monate.

Assisted by: Minesh.

Author
Artikel
#359585
multi-line.PNG

Hi,

If I create a Multi Line custom field, am I able to limit the characters to like 100 or 200 or any number of my choice.

#359646

Minesh
Supporter

Languages: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to know at which place you want to limit the multiple line field characters. is it at admin side or frontend side using CRED forms?

If you were talking about limiting characters at front-section. It is possible by two ways.

1) Using CRED validation hook "cred_form_validate"
=> https://toolset.com/documentation/user-guides/cred-api/#cfv

2) Using javascript/jQuery.

Please refer to following links for related tickets that may help you:
=> https://toolset.com/forums/topic/limit-character-in-custom-field/
=> https://toolset.com/forums/topic/limit-characters-in-multiple-custom-fields-in-a-cred-form/#post-349253
=> https://toolset.com/forums/topic/limit-characters-in-multiple-custom-fields-in-a-cred-form/#post-348699

#359647

Hi, this is for admin when i create fields for new pages are are being created

#359656

Minesh
Supporter

Languages: Englisch (English )

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

To control character limit at admin using Types is not possible.

Please try create a custom js for it, and use WP action hook "wp_enqueue_script" to load it in your admin side(back-end)

Please see this exactly same ticket - this may help you:
=> https://toolset.com/forums/topic/custom-field-character-limit-in-custom-post-type-on-back-end/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.