eForm configuration: array ( 'snipPath' => '/home/xxxx/public_html/assets/snippets/', 'vericode' => '1', 'formid' => 'commentsForm', 'from' => '[email protected]', 'fromname' => 'CMS Site', 'to' => '[email protected]', 'cc' => '', 'bcc' => '', 'subject' => 'Web Enquiry', 'ccsender' => 0, 'sendirect' => 0, 'mselector' => 0, 'mobile' => '', 'mobiletext' => '', 'autosender' => NULL, 'autotext' => '', 'category' => 0, 'keywords' => '', 'gid' => 84, 'noemail' => false, 'saveform' => true, 'tpl' => 'commentsForm', 'report' => 'EmailForm', 'allowhtml' => 0, 'replyto' => 'emailaddress', 'language' => 'english', 'thankyou' => 'commentsSent', 'isDebug' => '1', 'reportAbuse' => false, 'disclaimer' => '', 'sendAsHtml' => false, 'sendAsText' => false, 'sessionVars' => false, 'postOverides' => 0, 'eFormOnBeforeMailSent' => '', 'eFormOnMailSent' => '', 'eFormOnValidate' => '', 'eFormOnBeforeFormMerge' => '', 'eFormOnBeforeFormParse' => '', 'cssStyle' => '', 'jScript' => '', 'submitLimit' => 0, 'protectSubmit' => 1, 'requiredClass' => 'required', 'invalidClass' => 'invalid', 'version' => '1.4.3', )
Hi, is there an example or can someone guide me on how to use #FUNCTION
Basically, I want to check if the supplied email (in the form) already exists in the database, and based on the return value either proceed or output a validation message.
Now, where do I write my function and how do I invoke it in eform.
I use eform 1.4.3 -- have eformtodb configured and it works great. I would like to only insert the supplied form data into the database if the email provided DOES NOT exist in the database.
preventDupes()function on eFormOnBeforeFormMerge
<textarea name="emailwinkelwagen" rows="2" cols="20">[+emailwinkelwagen+]</textarea>
) if some parameters could be files ie: tpl,report and the event function.[!eForm &sessionVars=`emailwinkelwagen` ... !]
<textarea name="emailwinkelwagen" rows="2" cols="20">[+emailwinkelwagen+]</textarea>
This discussion is closed to further replies. Keep calm and carry on.