Hi, I have looked extensively and have not found an answer to this> i have a form with 4 type possible, so in the submission email i want to have one of the 4 value possible.
i have created custom field : "Custom Element (HTML/PHP)" ,and i put it my PHP .
So in my form i have the good value in this field.
in my email, in STATIC i have my informations ... the Static Subject is empty , and the Dynamic Subject contain the field name.
if i use STATIC subject i have the good subject in my email.
but with this Dynamic Subject , my email contain the subject : "DEFAULT SUBJECT"
Thanks for all your work!
i have created custom field : "Custom Element (HTML/PHP)" ,and i put it my PHP .
So in my form i have the good value in this field.
in my email, in STATIC i have my informations ... the Static Subject is empty , and the Dynamic Subject contain the field name.
if i use STATIC subject i have the good subject in my email.
but with this Dynamic Subject , my email contain the subject : "DEFAULT SUBJECT"
Thanks for all your work!
Hi yhafidi,
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.
Bob
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.
Bob
Hi Bob,
thanks
this is the debug :
Data Array:
Array
(
[ref] => 16
[chronoform] => OffreCandidature
[event] => submit
[cf_sid] => 82cee3275b9ea19b9a90c987553f2211
[Itemid] => 750
[option] => com_chronoforms
[view] => form
[civ] => Monsieur
[nom] => test Dynamic
[prenom] => test Dynamic
[mail] => [email]test@dynamic.fr[/email]
[telephone] => 0123456789
[permis] => Oui
[situation] => Demandeur d’emploi
[duree] => 1 mois
[handicap] => Non
[niveau] => Brevet des collèges
[experience] => De 1 à 2 ans
[cv] =>
[lettre_motiv] =>
[message] => Message
[chrono_security_answer] => s
[input_submit_4] => Envoyer
[1cdc44639898993e0a47a592f33d2fad] => 1
)
Validation Errors:
Array
(
)
Debug Data
1. Core Captcha
1. Passed the answer check!
2. email
1. 29
1. Result An email has been SENT successfully from (hhh)recrutement@hhh.fr to [email]test@testtest.fr[/email]
2. Body Message envoyé depuis http://www.hhh.fr (formulaire "OffreCandidature")
Réponse à l'offre : Matateur
Civilité : Monsieur
Nom : test Dynamic
Prénom : test Dynamic
Adresse eMail : [email]test@dynamic.fr[/email]
Téléphone : 0123456789
Message/Motivations : Message
Niveau de qualification : Brevet des collèges
Expérience professionnelle : De 1 à 2 ans
Situation : Demandeur d’emploi
Handicapé : Non
Permis B : Oui
3. Attachments array ( )
2. 31
1. Result An email has been SENT successfully from (hhH)recrutement@hhh.fr to [email]test@dynamic.fr[/email]
thanks
this is the debug :
Data Array:
Array
(
[ref] => 16
[chronoform] => OffreCandidature
[event] => submit
[cf_sid] => 82cee3275b9ea19b9a90c987553f2211
[Itemid] => 750
[option] => com_chronoforms
[view] => form
[civ] => Monsieur
[nom] => test Dynamic
[prenom] => test Dynamic
[mail] => [email]test@dynamic.fr[/email]
[telephone] => 0123456789
[permis] => Oui
[situation] => Demandeur d’emploi
[duree] => 1 mois
[handicap] => Non
[niveau] => Brevet des collèges
[experience] => De 1 à 2 ans
[cv] =>
[lettre_motiv] =>
[message] => Message
[chrono_security_answer] => s
[input_submit_4] => Envoyer
[1cdc44639898993e0a47a592f33d2fad] => 1
)
Validation Errors:
Array
(
)
Debug Data
1. Core Captcha
1. Passed the answer check!
2. email
1. 29
1. Result An email has been SENT successfully from (hhh)recrutement@hhh.fr to [email]test@testtest.fr[/email]
2. Body Message envoyé depuis http://www.hhh.fr (formulaire "OffreCandidature")
Réponse à l'offre : Matateur
Civilité : Monsieur
Nom : test Dynamic
Prénom : test Dynamic
Adresse eMail : [email]test@dynamic.fr[/email]
Téléphone : 0123456789
Message/Motivations : Message
Niveau de qualification : Brevet des collèges
Expérience professionnelle : De 1 à 2 ans
Situation : Demandeur d’emploi
Handicapé : Non
Permis B : Oui
3. Attachments array ( )
2. 31
1. Result An email has been SENT successfully from (hhH)recrutement@hhh.fr to [email]test@dynamic.fr[/email]
Hi yhafidi,
Hmm, I forgot that the Debug doesn't show the Subject line :-(
What do you have in the Dynamic Subject box?
Bob
Hmm, I forgot that the Debug doesn't show the Subject line :-(
What do you have in the Dynamic Subject box?
Bob
Hello Bob,
no pb
in the Dynamic Subject box i have the name of the field which contain the good word.
this word come from my container php which just print the good value ( 1 between 4).
no pb
in the Dynamic Subject box i have the name of the field which contain the good word.
this word come from my container php which just print the good value ( 1 between 4).
Hi yhafidi,
Hmmm, it isn't working so exactly what is in the Dynamic Subject box and what is your container PHP?
Bob
Hmmm, it isn't working so exactly what is in the Dynamic Subject box and what is your container PHP?
Bob
Hello Bob,
in my Dynamic Subject box : "input_custom_34"
my container PHP :
<?php
$db =& JFactory::getDBO();
$query = "SELECT * FROM lmh_chronoforms_data_OffreFicheSaisie WHERE cf_id=".$form->data['ref'];
$db->setQuery($query);
$offre = $db->loadAssoc();
echo $offre['poste'];
?>
and the Field Name of this container PHP is : "input_custom_34"
I can see the value which i want in the last step of the form , but not in the mail .
thanks so much Bob
in my Dynamic Subject box : "input_custom_34"
my container PHP :
<?php
$db =& JFactory::getDBO();
$query = "SELECT * FROM lmh_chronoforms_data_OffreFicheSaisie WHERE cf_id=".$form->data['ref'];
$db->setQuery($query);
$offre = $db->loadAssoc();
echo $offre['poste'];
?>
and the Field Name of this container PHP is : "input_custom_34"
I can see the value which i want in the last step of the form , but not in the mail .
thanks so much Bob
Hi hafidi,
The container code has to contain an input and set it's value for it to be carried of to when the form is submitted. You might do that like this:
Bob
The container code has to contain an input and set it's value for it to be carried of to when the form is submitted. You might do that like this:
<?php
$db =& JFactory::getDBO();
$query = "
SELECT `poste` FROM
`#__chronoforms_data_OffreFicheSaisie`
WHERE cf_id={$form->data['ref']} ;
";
$db->setQuery($query);
$offre = $db->loadResult();
echo $offre;
echo "<input type='hidden' name='response' id='response' value='{$offre}' /> ";
?>
Bob
Hello Bob,
what i have to do with "name='response' " ?
Sorry but i have always DEFAULT SUBJECT.
the value is good in the mail , but not in the subject of the mail
thanks
" for it to be carried of to when the form is submitted. " ?
what i have to do with "name='response' " ?
Sorry but i have always DEFAULT SUBJECT.
the value is good in the mail , but not in the subject of the mail
thanks
Hi yhafidi ,
Sorry but I am not completely lost. I have no idea what you are doing here or how you are trying to do it :-(
Bob
Sorry but I am not completely lost. I have no idea what you are doing here or how you are trying to do it :-(
Bob
Hello BOB ,
thanks so much , the good method was in your site , here :
http://www.chronoengine.com/faqs/2569-how-do-i-create-an-email-subject-using-data-from-the-form.html
😀
it works
thanks so much , the good method was in your site , here :
http://www.chronoengine.com/faqs/2569-how-do-i-create-an-email-subject-using-data-from-the-form.html
😀
it works
This topic is locked and no more replies can be posted.