I think the only way would be to have a function that split the value of the field based on spaces.
Check out the attached example. It uses regular expressions, so some caveats:
1. My regex skills stink, so it may not count words as perfectly as you like. It's pretty tolerant of special characters but a string like "this & that" will count as 3 words, since the & is counted as a word. You can tweak the regular expression to adjust to your needs.
The script is in the exit: event of the data entry text box. You can type in (or paste) text into that text box and when you tab out of the box the word count will update. You can move the script into a different event on your form depending on when you need the words counted.
Let me know how this works out for you.
WordCountTest.pdf 77.9 K
Thanks, this works great in LiveCycle, at least so far. I really appreciate it.