-
☆ A M B ☆
- 24,524 Posts
It just occurred to me that there should be a way to specify a validation string in the eform attribute for a "dummy" field that must be left empty to trap bots. As it is, I’m using a snippet/function to do this, but I suspect that it’s not necessary. I’ve never used the custom validation section; can somebody help me out with this idea?
-
☆ A M B ☆
- 24,524 Posts
That’s more what I had in mind. I already have a snippet with a function that simply silently aborts eForm (actually named checkField, by the way)
<?php
function checkField(&$fields,&$vMsg,&$rMsg) {
if(!empty($fields['fieldname'])) {
return false;
} else {
return true;
}
}
?>
It just seems to me that an inline validation rule should do the trick without the extra snippet and function.