Hi,
Joomla 1.6.1, ChronoForms v4.0 1.7RC
I want to get some additional fields added to the dynamic subject e-mail field in order to get Google Calendar to add the event information that the user inputs in the form.
I am thinking of using http://www.myeventbot.com/ in order to do this. (anyone know a better way to do this?)
Therefore I need a Subject looking like: [whattextfield datetime_field1 "to" datetime_field2].
I have tried numerous variations of the php-code I found on this forum. I am adding this to The "Custom Code - Before Email(s)".
The field names are as follows = and in english
navn = name
startdato = start date/time
sluttdato = end date/time
This is the latest code I used, but I have tested different variations found on the forum without anything happening. I receive an e-mail to the dynamically set e-mail address (via hidden field) but the subject is always empty. In the "Dynamic subject field" i input: subject.
I have no knowledge of php and I am using an outofthebox installation of the forum. Form created with wizard.
To me it seems at the code-window is not activated or something. Nothing happens at all!
Joomla 1.6.1, ChronoForms v4.0 1.7RC
I want to get some additional fields added to the dynamic subject e-mail field in order to get Google Calendar to add the event information that the user inputs in the form.
I am thinking of using http://www.myeventbot.com/ in order to do this. (anyone know a better way to do this?)
Therefore I need a Subject looking like: [whattextfield datetime_field1 "to" datetime_field2].
I have tried numerous variations of the php-code I found on this forum. I am adding this to The "Custom Code - Before Email(s)".
<?php
// Include different input data in dynamic subject
$name = JRequest::getString('navn', '', 'post') . ' ' . JRequest::getString('startdato', '', 'post') . ' ' . JRequest::getString('sluttdato', '', 'post');
$subject = "[$name]";
JRequest::setVar('subject', $subject);
?>
The field names are as follows = and in english
navn = name
startdato = start date/time
sluttdato = end date/time
This is the latest code I used, but I have tested different variations found on the forum without anything happening. I receive an e-mail to the dynamically set e-mail address (via hidden field) but the subject is always empty. In the "Dynamic subject field" i input: subject.
I have no knowledge of php and I am using an outofthebox installation of the forum. Form created with wizard.
To me it seems at the code-window is not activated or something. Nothing happens at all!