I am having a very simular issue but I am trying to count the characters in multiple feilds with a total amount not exceeding 24,000. I am trying to export the data and they gave me a cap on the amout of characters that I can export out of one document. So wanted to do a character count instead of a word count but I can get the coding right here is what I have. Not the greatest at java scrpiting so try not to lol too much. :)
function CountLeft(field, count, max)
{
if (field.value.length > max) field.value = field.value.substring(0, max); else
count.value = max - field.value.length;
}
Only 24000 characters allowed!
characters left
{
if (field.value.length > max) field.value = field.value.substring(0, max);
else count.value = max - field.value.length;
}
Only 24000 characters allowed!
characters left