In my form at least 20 words should be used to describe the reason for a request. I can't use a regex for a multine textbox, so I have googled for some javascript and found this great post by @Dan Stoll. However, I can't make the following code work:
function wordCount(source, args) {
var words = args.Value.split(” “);
words = NWF$.grep(words, function (element, index) {
if (element.trim() != “”) {
return true;
}
});
if (words.length < 20)
{
args.IsValid = false;
}
}
I also don't see anything on saving the client id of the textbox control in a javascript variable (value?). Does anyone have any suggestions?
Kind regards,
Yvette