Word Count in Multiline NOT working :(
Hello all....
I have the following script to stop a user from submitting a narration text to us that is above 125 words.
However, for some reason, the submission does not get cancelled...
wordsList=input.narration.toList(" ");
wordsCount=wordsList.size();
if(wordsCount > 125)
{
alert ("Sorry. Only 125 Words or less are allowed. Please correct your narration text accordingly. Thank you.");
cancel submit;
}
Thank you very much.
Francois