Forums

Date Stamp - Dynamic Subject Email

bob_smith 13 Jan, 2017
Hi There,

I'm been trying all day to put a date stamp in the dynamic subject line when someone requests to be contacted. I've read just about every post on this forum and tried 100 times and just not coming right.

I've created a hidden field in the form (1.jpg)

In the Setup section in the "On Submit" box, above the email box. I've put in this code. (2.jpg)

In the advanced tab of the email event section I have the variable. (3.jpg)

I get the email and everything - just the date and time just dont appear anywhere in the subject.

Can you help?
Max_admin 19 Jan, 2017
Hi Bob,

Your images don't display.

You can use a "custom code" action before the email action:

<?php
$form->data["date"] = date("Y-m-d H:i:s");


Then in your subject field:

{date}


Best 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.