Help getting word counter working

libdesign 30 Jun, 2009
I have word counting for one of my comment fields. The javascript works using the name attribute from the form tag. It works fine outside of ChronoForms but since in ChronoForms HTML code is added without the form tags, the javascript word counter is not working. I have added the javascript in the "Form Javascript" area of the Form Code Tab and tried adding the "name" attribute under the "Form Tag Attachment" in the General Tab.

I'm not sure how to get this to work since the form tags aren't in the html. Any suggestions?

Thanks
Adriana
Max_admin 01 Jul, 2009
Hi Adriana,

in your JS code change any form name data to
ChronoContact_+form_name_in_chronoforms
and this will do it!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
libdesign 01 Jul, 2009
Thanks, you really helped. I changed only one thing and wrote it as "ChronoContact.myformname" with a period rather than an underscore and now it's working fine. I love this component!

Adriana
Max_admin 02 Jul, 2009
Hi Adriana,

Great, but it should work with an underscore!!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.