Forums

Textarea character counter not showing.

bstrydom 26 Jun, 2015
Hi,

I followed this guide to add a textarea character limit.

https://www.chronoengine.com/faqs/70-cfv5/5229-adding-a-character-counter-in-cfv5.html

It works perfectly limiting the characters but the document says the following:

Save and test the form. You should see a message "50 characters left" under the textarea.



However, nothing is showing up. the text is limited but has no warning message counter at all.

Where could I be going wrong?

Thanks
GreyHead 26 Jun, 2015
Hi bstrydom,

Please post a link to the form so I can take a quick look.

Bob
GreyHead 26 Jun, 2015
Answer
1 Likes
Hi bstrydom,

Failed to load resource: the server responded with a status of 404 (Not Found) http://test.my_domain.com/libraries/cegcore/components/com_chronoforms5/extras/textarea_maxlength/jquery.maxlength.min.js

That URL is not the same as the one I would expect - it's going to /libraries/cegcore/ Please check the URL in the Load statement - it may need to have a leading / or to be a full URL.

Bob
bstrydom 26 Jun, 2015
Thanks for that advice Bob. It did have a full url or a leading slash. so I tried both but it is still not working. The full URL loaded properly so I left it on that now.

But it's not working😛
bstrydom 26 Jun, 2015
Ok, so i loaded the form in a proper article and it is now showing the character limit. 🙂 Thanks Bob. You're a legend
This topic is locked and no more replies can be posted.