Woo Checkout Editor - Character Limit

Hi Guys,

We’re using your woo checkout editor and I need to add a character limit to the delivery notes field.
Can you please assist?

Kind regards,
Claire :slight_smile:

Hi Claire,

Thank you for writing in, regretfully there is no native feature on the WooCheckout editor to do that. But since that can be done quickly with one line of code, I’ll provide, with the understanding that we can not provide support for any issue that this code will cause/conflict.

Add this to your Theme Options > JS

jQuery( '[name="delivery_remarks"]' ).attr( "maxlength", "99" );

Replace the delivery_remarks with the name of your custom field, and the 99 to your prefer character limit.

Cheers,

Thanks so much Friech! That worked perfectly. You’re a superstar :grinning:

We are delighted to assist you with this.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.