I am having the same problem as Cider.
Fatal error: Call to undefined function eformGetTvTherapist() in ..../assets/snippets/eform/eform.inc.php on line 139
Below is the snippet and form call I’m using. Not sure what I’m doing wrong, anybody got any ideas?
Thanks for any help offered, Jules
Snippet:
<?php
if( !function_exists('eformGetTvTherapist') ) {
function eformGetTvTherapist(&$fields,&$templates){
global $modx;
$rawvalue = $modx->getTemplateVarOutput('tv_preferred-therapist');
$dates = explode("\n",$rawvalue['tv_preferred-therapist']);
foreach( $dates as $dateString ){
$dateString = trim($dateString);
if($dateString) $options .= "<option value=\"$dateString\">$dateString</option>\n";
}
$templates['tpl']=str_replace('[+display_tv_preferred-therapist+]',$options,$templates['tpl']);
return true;
}
}
return '';
?>
Form Call:
[!af_checkField!]
[!eForm? &formid=`appointmentForm` &tpl=`appointment-form-template` &report=`af-email-to-admin` &subject=`Massage Center of Bellevue` &automessage=`af-email-to-user` &replyto=`email` &eFormOnValidate=`af_checkField` &eFormOnBeforeFormParse=`eformGetTvTherapist` &gotoid=`14`!]