Hi TobyL,
unfortunately I don’t get the function working

I remember trying to get another eformonbeforeparse event to work, and it didn’t work either. I must be overseeing something essential ...
What i did is (comparing your previous post and the eform_example_events.htm page) :
I created a snippet [[includeEmailadres]] with the function you suggested
<?php
function beforeParseFunction( &$fields, &templates ){
$var = getTemplateVarOutput( array('Emailadres') );
$fields['PHEmailadres'] = $var['Emailadres'];
return true;
}
//return empty string
return '';
?>
Where Emailadres = the tv with the email stored per document
and PHEmailadres is the Placeholder which I put in the call to eform
the call to the snippet and eform in my chunk:
[[includeEmailadres]]
[!eForm? &formid=`contactform` &tpl=`contactform` &to=`[+PHEmailadres+]` &report=`contactformreport` &subject=`Vraag via site` &vericode=`1` &eFormOnBeforeFormParse=`beforeParseFunction`!]
I always get the error
Fatal error: Call to undefined function: beforeparsefunction() in .../assets/snippets/eform/eform.inc.php on line 134
Can you tell me what I’m doing wrong?
thx
(I have version 1.4.1)