Edit subject in mail sent from form1 user found helpful
Probably best to copy the form block folder from /concrete/blocks to /blocks first before changing anything.
Not sure if there is an easier way?
$mh->setSubject($this->surveyName.' '.t('Form Submission') );
concrete/blocks/form/controller.php now only has the following:
If you have a look in this file, you will see that it just contains the 'action_submit_form()' function and on line 216 you will see that I have added 'Test submission' to the subject.
Give it a whirl.
If I want our subject line to just read "AVL Answers" - do I change everything between the quotes, or just where it reads Test Form Submission --
$mh->setSubject(t('%s Test Form Submission', $this->surveyName));
$mh->setSubject(t('AVL Answers', $this->surveyName));
$mh->setSubject(t('%s AVL Answers', $this->surveyName));
Sorry - I'm not exactly familiar with how the %s works - but if I delete it, I have to also delete something else that corresponds to it, right?
If the form called 'Contact' is being submitted, then the Subject will be 'Contact Form Submission'. If the form called 'AVL Answers' is being submitted, the Subject will be 'AVL Answers Form Submission'
If you look at the code, this line tells you how it works:
$mh->setSubject(t('%s Form Submission', $this->surveyName));
The %s is a placeholder and the value of $this->surveyName gets injected in place of the %s
We only have one main form - the generic contact us form... I have a couple other forms that almost never get used, but they would be extremely easy to tell what form they are.
I'll have to think about how to go about this - what to name my forms and what to have as a global add-on to the form name. Thanks so much for your help!
In Forms - I'm also changing the Subject on the "guestbook.php"
The only other thing I'm looking for is where do I change the Reply to Email from "Concrete5-noreply" to something like "Mywebiste-noreply"
Is there any way of getting the name of the form user to appear in the subject title. Client of mine want it so she can quickly see who sent form.
many thanks for your help