Hello,
I am new to Chronoforms but so far have had good success setting up a form in J1.5 capturing some basic data such as:
Name
Email Address
Selection Option
Date
(and also seem to be successful using validation)
I would like to include BOTH values Selected Option and Date in the Subject Line of the email message that is consequently emailed.
How do I do this?
Many thanks
symbic
GreyHead,
The code you supplied in your previous post looks like it is exactly what I need, however I can't seem to get it working. Is this something that you have used with Chronoforms, and if so is there anything else I need to do to get it working... i.e. placing a variable in the special fields subject field...
Thank you for your help,
Sam
Is there anyway to debug this? I've tried entering my values that are being posted, but my emails are sending with blank subjects...😟
Hi Denise,
Sorry there was a dot '.' missing before the second $_POST - I've put it back in my pevious post.
Bob
Hi symbic,
Not my day, there was a second typo in the next line a : instead of a ; - also fixed now.
Bob
Yea! Thanks very much!:cheer:
All working nicely now with both fields displayed in subject line along with set text
(Note I left Subject Field blank under the Special Fields tab)
Chronoforms has ended up providing very nice solution for what i needed.
thanks again
Denise
I was actually able to use this help to put five fields plus additional text in my subject line (a name and a date even though they were broken up into individual parts).
Thank you so much for this fix!
Hi Patrick,
Which versions of ChronoForms and Joomla are you using (apologies if we've already asked this - I don't remember)? The code here was for Joomla 1.0.x
Bob
Sorry,
I forgot to mention it🙂
Joomla 1.5.8 and Chronoforms V3.0
Patrick
Hi Patrick,
try to make it :
$emails[0]->subject = JRequest::getVar('firstname')." ".JRequest::getVar('lastname');
!replace fields names with yours!
put this cod in the onsubmit before email!
Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks Max,
this looks better.
I added the php tags to the code <?php and ?> at the end. But I do not want to use the "subject" field but the "Dynamic name from" field. Which variable should I use instead?
Isn't there a nice way to combine these fields in the email template fields ?
Thx
Patrick
Hi Patrick,
use dfromname instead of subject then!
nicer way? how ?
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Patrick,
Each email can have only 1 from name and 1 from email!
don't leave a space between the dfromname and the > in your code!
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi jdpickering,
Try without the comma - that may be being treated as a special character.
Bob
Hi jdpickering,
try to add a dynamic from name to your form and see if it comes with the email ?
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
and when you test this, what do you get in the from name of the email ?
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
this is weird! can I get a temporary admin access to check that ? I have no ideas here!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sorry I have been away for a bit. I currently am working inside XAMPP i'll get my changes uploaded and then create an account for you to take a look.