Hi,
ok I will check this.
But for now you can use Validation like this in your element->Properties->Validation
function ff_badwords_validation(element, message)
{
var badwords = /\b(badword3|badwords2|badwords3|badwords4)\b/ig;
if (badwords.test(element.value)) {
if (message=='') message = element.name+" contains a spam word.\n";
ff_validationFocus(element.name);
return message;
} // if
return '';
} // ff_badwords_validation
Please replace badwords with name of element for badwords (not title)
If you want to do this as server side validation, then go to your form->Advanced->More options->Submit pieces->Begin Submit->check Custom:
$this->execPieceByName('ff_InitLib');
$value1 = ff_getSubmit('nameofelement');
if( preg_match("/(badword1|badword2|badword3)/",$value1)){
echo 'Wrong';
exit();
}
Please replace nameofelement with name for your element (not title)
Regards,
Tihana