Hello,
is it possible to add on a simple form a Dropdown "Contact reason" as you did on your contact form,
and after, when you click on the button "send", the form is sent to email 1, 2 or 3, depending on the answer of the dropdown ?
The form is at http://www.ozone-france.fr/contact.html
My apologies for my broken English,
thank you in advance
Elodie
is it possible to add on a simple form a Dropdown "Contact reason" as you did on your contact form,
and after, when you click on the button "send", the form is sent to email 1, 2 or 3, depending on the answer of the dropdown ?
The form is at http://www.ozone-france.fr/contact.html
My apologies for my broken English,
thank you in advance
Elodie
Hi Elodie,
Yes, this is very much possible, and is described in the #31 FAQ.
/Fredrik
Yes, this is very much possible, and is described in the #31 FAQ.
/Fredrik
Hello Fredrik,
thank you for your fast answer.
Well I tried on an other test form ( http://www.studio-ubaye.fr/j-stuff/contactchronoform.html ) and I do not receive the form.
Is there something special to add in the Wizard Edit / choose email edit / "to" field ?
A new message error also appears on the "thank you page" :
Parse error: syntax error, unexpected '.', expecting ')' in /home/stdubaye/public_html/components/com_chronocontact/libraries/customcode.php(64) : eval()'d code on line 2
Do you have an idea ?
Elodie
thank you for your fast answer.
Well I tried on an other test form ( http://www.studio-ubaye.fr/j-stuff/contactchronoform.html ) and I do not receive the form.
Is there something special to add in the Wizard Edit / choose email edit / "to" field ?
A new message error also appears on the "thank you page" :
Parse error: syntax error, unexpected '.', expecting ')' in /home/stdubaye/public_html/components/com_chronocontact/libraries/customcode.php(64) : eval()'d code on line 2
Do you have an idea ?
Elodie
Hi Elodie,
Could you post the code you used in "On submit - before email"?
/Fredrik
Could you post the code you used in "On submit - before email"?
/Fredrik
Yes of course :
And in form html :
<?php
$emails_2 = array('em1'=>'elo@awress.com', 'em2'=>'contact@awress.com', 'em3'=>'contact@studio-ubaye.fr', . . .);
$MyForm =& CFChronoForm::getInstance('form_name_here');
$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);
$MyFormEmails->setEmailData(1, 'to', $emails_2[$_POST['recipients']]);
?>
And in form html :
<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width: 150px;">Sujet</label>
<select name="recipients">
<option value="em1">Name 1</option>
<option value="em2">Name 2</option>
<option value="em3">Name 3</option>
</select>
Sorry for the inconvenience,
it works perfectly when you follow the directions carefully and not making anything ...
I stupidly forgot to put the form name and left the "..." following emails in php code😶
Thank you for the help,
Elodie
it works perfectly when you follow the directions carefully and not making anything ...
I stupidly forgot to put the form name and left the "..." following emails in php code😶
Thank you for the help,
Elodie
This topic is locked and no more replies can be posted.