Hi there,
I was wondering if there is a way to allow the form to be submitted but to suppress the email.
In some cases the user should only get a message on the screen, in some other special case, the user get's an email after the submit.
Regards,
Johan van Leur
I was wondering if there is a way to allow the form to be submitted but to suppress the email.
In some cases the user should only get a message on the screen, in some other special case, the user get's an email after the submit.
Regards,
Johan van Leur
Hi Johan,
you need to use PHP and use the useful functions in RC4 to do this, so you need to upgrade😉
here is an example:
cheers
Max
you need to use PHP and use the useful functions in RC4 to do this, so you need to upgrade😉
here is an example:
if(true){
$MyForm =& CFChronoForm::getInstance();
$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);
$MyFormEmails->setEmailData(1, 'enabled', 1);
//1 = email identifier, say you have 5 emails then this is the first email
//enabled is the email field which enable/disable the email, you can use to,dto,subject...etc
//1 is the enable value
}
cheers
Max
This topic is locked and no more replies can be posted.