-
☆ A M B ☆
- 24,524 Posts
I use an eForm event, eformOnValidate. I have this snippet checkField
<?php
function checkField(&$fields,&$vMsg,&$rMsg) {
if(!empty($fields['Last__Name'])) {
return false;
} else {
return true;
}
}
?>
and this eForm snippet call
[!checkField!]
[!eForm? &formid=`ContactForm` &tpl=`ContactForm` &report=`ContactReport` &subject=`sottwell.com Contact` &thankyou=`ThankYou` &replyto=`email` &debug=`1` &eformOnBeforeMailSent=`getServer` &eformOnValidate=`checkField`!]
and this in my chunk tpl for the form
<input type="text" name="Last__Name" id="LastName" size=30 autocomplete="off" eform="LastName::0" />
Working perfectly!
Thank you so much for this Ma’am!