I have a form where a field is limited as to the number of words.
I've tried changing the event to "change" or "enter" and other options, but that breaks the code.
How can I fix it so it gives me live updates?
Any help would be greatly appreciated.
The code is currently:
var cnt = word_count(this.rawValue);
WordCountResult.rawValue = cnt.toString();
textParam = textParam.replace(/^\s*|\s*$/g,'');
Place your function in the change event. Then call as word_count(xfa.event.fullText); this.rawValue will not work in this context.
Are you rendering as HTML or pdf?