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.
Minesh
Supporter
Languages:
English (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
Hi, this is for admin when i create fields for new pages are are being created
Minesh
Supporter
Languages:
English (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/