Hello again!
Help me please insert a notice in the subject field of the value of the completed form ChronoForms.
Is it possible to do so?
I tried to insert the following:
"Message from {name}"
but the letter and came with a value of {name}, without replacement.
Thank you in advance🤔
Help me please insert a notice in the subject field of the value of the completed form ChronoForms.
Is it possible to do so?
I tried to insert the following:
"Message from {name}"
but the letter and came with a value of {name}, without replacement.
Thank you in advance🤔
OK, thanks Bob
obscure, but I think it will deal ...
Please help me with another question.
How do I insert a counter notice posted messages?
I tried to insert the {cf_id}, but it does not work: (
I could not find a solution on the forum.
obscure, but I think it will deal ...
Please help me with another question.
How do I insert a counter notice posted messages?
I tried to insert the {cf_id}, but it does not work: (
I could not find a solution on the forum.
Hi mc-sim,
Bob
How do I insert a counter notice posted messages?
I'm not clear what you want to do here. Please can you explain a bit more?Bob
Not to miss posted messages (such as problems with the mail server), I want to insert in the subject or body of the message notification - Message counter.
In creating tables in the database there is a field, as cf_id.
This field takes into account the number of each message left with an automatic increase of one unit. Is it possible to insert a field value cf_id or create another counter with auto increment values?
In creating tables in the database there is a field, as cf_id.
This field takes into account the number of each message left with an automatic increase of one unit. Is it possible to insert a field value cf_id or create another counter with auto increment values?
Hi mc-sim,
There is no cf_id counter unless you enable the database save. If you are concerned about security then you should probably do this in case an email is lost. You can then set the DB Connection to run before the email and include the cf_id record id in the email.
Without a DB Connection you need to store the last value of cf_id somewhere safe - a text file for example - and update it each time a new email is sent. Frankly the DB Connection method is simpler and safer.
Bob
There is no cf_id counter unless you enable the database save. If you are concerned about security then you should probably do this in case an email is lost. You can then set the DB Connection to run before the email and include the cf_id record id in the email.
Without a DB Connection you need to store the last value of cf_id somewhere safe - a text file for example - and update it each time a new email is sent. Frankly the DB Connection method is simpler and safer.
Bob
There is no cf_id counter unless you enable the database save. If you are concerned about security then you should probably do this in case an email is lost. You can then set the DB Connection to run before the email and include the cf_id record id in the email.

settings are set, but not substituted cf_id value
P.S. I do not understand very well in English, may be misunderstood you
Ok. I did it:
In RunOrder:
Order of Autogenerated block - 2
Order of OnSubmit block - 3
In Form Code - On Submit code - before sending email:
and in the subject line comes:
Message from XXXXXX, number phone 5555555, number
after the number - is empty
I'm not the right thing?
In RunOrder:
Order of Autogenerated block - 2
Order of OnSubmit block - 3
In Form Code - On Submit code - before sending email:
<?php
$lname = JRequest::getVar('last_name', '', 'post');
$tphone = JRequest::getVar('phone', '', 'post');
$cf_id = $MyForm->tablerow["jos_chronoforms_zayavka"]->cf_id;
JRequest::setVar('zayava', 'Message from '.$lname.', number phone '.$tphone.', number '.$cf_id);
?>
and in the subject line comes:
Message from XXXXXX, number phone 5555555, number
after the number - is empty
I'm not the right thing?
Hi mc-sim,
You can't do it in the OnSubmit Before box as that is executed too early. You can get the id into the email body by adding the code to the email template. Not sure how to get it into the subject.
Looking at the ChronoForms code I think that the only way is to add the code to get the cf_id into the email template. To do this you have to turn off the Rich Editor by setting "Use Template Editor" to 'No' in the Email Setup Properties box.
Bob
You can't do it in the OnSubmit Before box as that is executed too early. You can get the id into the email body by adding the code to the email template. Not sure how to get it into the subject.
Looking at the ChronoForms code I think that the only way is to add the code to get the cf_id into the email template. To do this you have to turn off the Rich Editor by setting "Use Template Editor" to 'No' in the Email Setup Properties box.
Bob
Great-thanks a lot!
It works!
So, to insert into the body of the message - the message ID, you must:
1. In the configuration form: Setup Emails - Email Properties - Use Template Editor to select NO. Click Apply - Save.
2. Tab RunOrder choose the execution order "Order of OnSubmit block" after "Order of Autogenerated block"
3. Insert tab Emails Templates code shown below.
It works!
So, to insert into the body of the message - the message ID, you must:
1. In the configuration form: Setup Emails - Email Properties - Use Template Editor to select NO. Click Apply - Save.
2. Tab RunOrder choose the execution order "Order of OnSubmit block" after "Order of Autogenerated block"
3. Insert tab Emails Templates code shown below.
Some text: <?php echo $MyForm->tablerow["jos_chronoforms_yourform"]->cf_id;?>
Where "jos_chronoforms_yourform" - table name of your application form
This topic is locked and no more replies can be posted.