Question
How can I limit the amount of words in a text field?
I need to limit words in a text field instead of characters. I found this script in another forum, but the count seemed to be inaccurate:
var maxWords = 10;
if (AFMergeChange(event).split(" ").length > maxWords) {
app.alert("The max word count is " + maxWords + " words.");
event.rc = false;
}
Any help is appreciated.
