More field in dynamic ......

karmine 01 Feb, 2010
Can I add more than one field (from my form), in Dynamic Subject?

Thx
GreyHead 01 Feb, 2010
Hi karmine,

Not directly in the Dynamic Subject box but you can create a combined value in the OnSubmit Before box. There are several examples here if you search on dynmaic subject.

Bob
karmine 02 Feb, 2010
I tried this, but does not work....

http://chronoengine.com/forums.html?cont=posts&p=42937#p42937

I have a dynamic subject -->ex --> field_1

and i have insert the code in "On Submit code - before sending email:"...

<?php
$totalefatt = JRequest::getVar('totalefatt', '', 'post');
$field_1 = JRequest::getVar('field_1', '', 'post');
$subject = $totalefatt.'_'.$field_1;
JRequest::setVar('subject', $subject);
?>

But the subject is ever a content of field_1 ...

Any idea?
GreyHead 02 Feb, 2010
Hi karmine,

You need subject in the Dynamic Subject box.

Bob
karmine 03 Feb, 2010
Ok, but subject is a Hidden Field?
...
Thx
GreyHead 03 Feb, 2010
Hi karmine,

Is it? Have you tested?

Bob
karmine 03 Feb, 2010
I inserted a hidden field "subject" ....
and I added this in "dynamic subject"...
and it WORKS

Thanks Bob!!!
[SOLVED]
This topic is locked and no more replies can be posted.