Thanks for that. I couldn’t get your code to work, so I went back to square one. The following does work :
- Create a document with this as the content
[!neweForm? &vericode=`1` &formid=`ContactForm` &subject=`[+subject+]` &to=`[email protected]` &tpl=`contactform_chunk` &report=`contactformreport_chunk` &gotoid=`1`!]
- Create a chunk called (in this example) "contactform_chunk". Put "[+captcha_html+]" (no quotes) in the form in the place that you want the recaptcha field to be. In this case, the form was named "ContactForm".
- Create a chunk called (in this case) "contactformreport_chunk". This is just the stuff that gets sent back to you.
- Create a snippet called (in this case) "neweForm". The code is attached, being a merging of the eForm snippet and eForm.inc.php file. (I got tired of bouncing around between editors, so I stuck the whole thing in a snippet). Here’s the code - search for "MattC" to see where I made changes.
Credit to the code presented in the thread I noted earlier - the key was to get the output of recaptcha_get_html merged into the form template before letting eform do it’s processing.
Lemme know if you get it to work...
Matt
UPDATE : code replaced. See below