I absolutely love this extension, except for one small thing that is nagging me: All of my forms work with the dynamic fields EXCEPT in the "on submit code" before and after when I want to include a greeting:
Example:
<p>{text_2}, thanks for your order!</p>
<p>Your order has been received and someone from our team will contact you soon.</p>
<p>We understand that you had a choice in deciding who to do business with. We appreciate you allowing EPIC Sportswear to service you!</p>
<p>Kind regards,</p>
<p>Jaime</p>
I have the dynamic fields working in every other form and part of this extension except here. How do I get {text_2} to return the respective value?
Cannot deliver website to client until this is corrected. Any help is appreciated!
Arvin
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hello,
Sorry for sounding like a complete noob (which I am), but I am unable to get the dynamic subject working,
Here are the thing I have done:
I have a a for with {text_2}, This is the field I want to appear in my email subject line
I have Subject Dynamic in the email settings.
I have put <input type="hidden" name="subject" value=""> on the top of my form
I have put this on the ON SUBMIT box <?php $_POST['subject'] = "My custom text here ".$_POST['text_2'] ?>
I get the email but no subject filled in. I have V3 Stable, what am I doing wrong.
Thank you
Hi bushido,
I think you can just put field_name in the dynamic subject field.
Bob
Later: edited to remove unnecessary curly brackets, just use the field name
I gave that a go a no joy.
Any other points please.
Hi bushido, please remove this hidden field and the onsubmit code and write text_2 which is the field name in the dynamic subject field, that's all!
Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
It worked.
Sorry to be a pain, how would you got about have text and two fields?
E.g - Application form for "TEXT 1" "TEXT 2"
Thank you
PS. Love this tool.๐
Hi bushido, this is not possible, only 1 field, unless you want a 3 or 4 lines of code to add at the onsubmit box, let me know if you want to add code and I will show you what to do!
Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi bushido, please clarify, how it comes with a long url exactly ? you mean after submit or the form link ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi,
#1- make a menu item of type Chronoforms NOT from type URL, thats why it appears like this!
#2- assuming you have 2 emails there, email number one will be #0 and email number 2 will be #1, so the code will be :
<?php
global $mainframe;
$emails[0]->subject= "Application form for ".JRequest::getVar('text_field_1').' '.JRequest::getVar('text_field_2');
?>
that goes in the onsubmit before email box!
regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max
Going to test out the code tonight.
Just out of intrest, why would you need two emails?
Tried it with only one email in place and it seem in work.
Thank you for the grate support.
Just to clarify in case you had more than 1 email!
Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max, sorry to beat a dead horse but I'm having a similar problem.
I have Joomla 1.5.7 and CF 3.0 Stable installed and everything is working perfectly except for putting dynamic elements in the subject
The name of the form element is 'memb' and it requests the user's membership level (i.e. sponser)
I put 'memb' (without quotes) in the onSubmit form code area and put 'memb' (no quotes) in the Dynamic subject of the email to be sent out and it worked great.
I have a problem when I try to do something like "A new request to become a memb has been submitted' (I want to send this to the site administrator). Do I need different syntax when the dynamic field has a string within it as well? Optimally I would like to do "firstName lastName has submitted a request to become a memb" but it looks like that is beyond CF 3.0 at this point?
I also have to say that you guys have created my favorite component for Joomla and your support has been great with all my other questions. Thanks so much for all you have done
Hi Endlessline,
As you said, this is not possible with the current V3.0 stable method, you can do it with one line of code at the onsubmit box though :
<?php
$emails[0]->subject= JRequest::getVar('firstName').' '.JRequest::getVar('lastName').' has submitted a request to become a '.JRequest::getVar('memb');
?>
I assume you have only one email setup!Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
yes, great coding!๐
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi mus1402 ,
This is a very old thread, there are much more recent posts about setting up Dynamic Subjects.
If you use this method (and the code may no longer work) then you should leave he Dynamic Subject box empty and put a a dummy entry like 'subject' in the standard Subject box (this value will be over-written so isn't important).
Bob