Creating a subject using data from the form

kkurtz 04 Sep, 2012
I am trying to create a subject using static text and data from the form. I found something in the FAQs which should work. But I must be doing something wrong.
Here is the php code I copied from the FAQ and modified for my form.
<?php
$form->data['subject'] = "Website Approval Request for {$form->data['chapter_name']} ";
?>
Chapter_name is the dynamic field I'm trying to include.
I can only get the Default subject.

Also, the FAQ mentions a "custom Email [GH] action." How can a get that?

Thanks,
KKurtz
Max_admin 04 Sep, 2012
Hi,

Try to change your code to:

<?php
$form->data['subject'] = "Website Approval Request for {chapter_name} ";
?>


The Email GH action and other actions are available on Bob's website: greyhead.net

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.