Skip Navigation

[Resolved] Split: Limit characters in single line field

This support ticket is created 3 years, 6 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years, 6 months ago.

Assisted by: Jamal.

Author
Posts
#2123087

Hi Jamal,

Thanks for the information and note about repeatable field groups. Is there a way to limit the amount of characters for a single line field?

Thanks,
Leslie

#2123093

Hello Leslie,

You can add custom Javascript code to the form to set a maxlength attribute to the field. Check the solution on this similar ticket https://toolset.com/forums/topic/can-i-limit-characters-count-for-my-single-line-text-field-in-cred-forms/

If you are unsure about it, share a URL where we can see the form and I'll provide a working code.

Best regards,
Jamal