Skip Navigation

[Resolved] Min and max characters/words

This support ticket is created 7 years, 4 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
- 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 24 replies, has 2 voices.

Last updated by Nicholas 7 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#543788

Oh I just noticed that it's not working in safari and firefox. It's only working in chrome.

#543996

And it's also not working with the CRED edit form of the post.

#544201

Minesh
Supporter

Languages: English (English )

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

Could you please send me duplicator package of your site.
=> https://toolset.com/faq/provide-supporters-copy-site/

I have set the next reply to private which means only you and I have access to it.

#544639

Minesh
Supporter

Languages: English (English )

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

I'm able to fix the issue with Chrome but we are investigating for FF and safari browser.

Could you please check now that with Chrome its working as expected. I've changed the code for CRED form as given under:

jQuery(document).ready(function($){

jQuery(document).on( 'cred_form_ready', function() {  
 
$("input[name='wpcf-artist-1']").limiter(10, 'wpcf-artist-1');

}); 
 
});
#544747

Hello Minesh. Yes it works very nice on CRED edit forms too now.

This did the trick :
jQuery(document).on( 'cred_form_ready', function() {

});

Looking forward to find out why it's not working in FF and safari browsers.

I have to overhaul a lot of js which I used with CRED forms. A lot of the js didn't work anymore after the update last month.

Regards,
Nicholas

#545449

Minesh
Supporter

Languages: English (English )

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

Hello Nicholas,

I've changed the JS code as given under and now it works with Firefox as well.

jQuery(document).on( 'cred_form_ready', function() {  
 
jQuery("input[name='wpcf-artist-1']").limiter(10, 'wpcf-artist-1');
 
});

Could you please check and confirm.

#545713

Very nice! Thank you Minesh.

I have one more question for you:
Is there a way to set the min character count?
So for example if the post_excerpt field has less than 30 characters the post can't be saved.

Regards,
Nicholas

#545745

I just noticed. It's not working on mobile for some reason.

Edit: It's working on mobile

#545904

Minesh
Supporter

Languages: English (English )

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

Thanks and glad to know that it works on all browser and mobile.

May I kindly ask you to open a new ticket for your each new question. This will help other users searching on the forum. Thank you for understanding.

#545959

Thank you Minesh. You were a great help.