Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Paul Zero
  2. F2C field types
  3. Friday, February 03 2017, 06:34 AM
  4.  Subscribe via email
Hi All !

Re : 'Textarea' - 'Character Count'

Just realized I have a problem with field type 'textarea' & 'character count' - this feature used to work but now does't anymore. Problem effects all 'textarea' fields with 'character counting' on a couple of websites - that are all now running 'Community Build' (Plus a range of other extensions).

Only ref. I can find is in 'components/com_form2content/js/f2c_frmval.js' which has function 'function F2C_limitTextArea(field, countfield, maxlimit)'.

When typical 'textarea' field is rendered, I see the following code :

<textarea name="t1508" id="t1508" style="width:100% !important;" onkeydown="F2C_limitTextArea(this.form.t1508,this.form.t1508remLen,44);" onkeyup="F2C_limitTextArea(this.form.t1508,this.form.t1508remLen,44);" class="" aria-invalid="false"></textarea>

Then in the 'character remaining' box I'm seeing the code :

<input readonly="" type="text" name="t1509remLen" size="6" maxlength="6" value="100" class="" aria-invalid="false">

Somewhere, something is messing up / conflicting with the character counter - any ideas on how to fix ?

Cheers - Paulzero
Responses (1)
F2C webmaster Accepted Answer Pending Moderation
Hi Paulzero,

We haven't (yet) have any other reports on the counter not working.
Since it used to work it might be worth seeing if you can narrow it down by:
- Using native templates
- Switching off any overrides
- Using latest versions (please add your versions next time)
- Switch off extensions until the counter does work...this is assuming there is a conflict.

Are there any JS errors? Does it work in the back-end?

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C field types
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.