Problem:
Can i limit characters count for my single-line text field in CRED forms?
Solution:
You should add custom javascript code to your CRED form's JS box and it should work.
For example:
jQuery(document).ready(function ($) { $('name^=wpcf-FIELD-NAME]').attr('maxlength',20); });
Where:
- Replace FIELD-NAME with above code with your actual field name and set the maxlength limit accordingly. Currently its as as 20.
You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/can-i-limit-characters-count-for-my-single-line-text-field-in-cred-forms/#post-908303
Relevant Documentation:
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 3 voices.
Last updated by 6 years, 5 months ago.
Assisted by: Minesh.