drop down field and email
Hi,
in my form I have a field named recipients . The options are
=
apth=ARISTOTELE
tkm=ΤΕΙ
pamak=SERRES TEI
duth=DHMOCRETE THRACE
On load of form the options in the drop down field are shown as
ARISTOTELE
ΤΕΙ
SERRES TEI
DHMOCRETE THRACE
but when the form emailed the field shows the value of the left side of selected instead of the right..
For example if user choose TEI the email shows tkm.
What can I do to show the right side value?
Thank you.
in my form I have a field named recipients . The options are
=
apth=ARISTOTELE
tkm=ΤΕΙ
pamak=SERRES TEI
duth=DHMOCRETE THRACE
On load of form the options in the drop down field are shown as
ARISTOTELE
ΤΕΙ
SERRES TEI
DHMOCRETE THRACE
but when the form emailed the field shows the value of the left side of selected instead of the right..
For example if user choose TEI the email shows tkm.
What can I do to show the right side value?
Thank you.
Now I have another problem:
I used a custom element with the name name_ait
Inside of it I show the name of the user that logged in.
The problem is that:
when I emailed the form it shows {name_ait} and not the value of it.
In the Email template code I wrote {name_ait}. Do I have to write something else or to use code somewhere else.
Part of the code is below
I used a custom element with the name name_ait
Inside of it I show the name of the user that logged in.
The problem is that:
when I emailed the form it shows {name_ait} and not the value of it.
In the Email template code I wrote {name_ait}. Do I have to write something else or to use code somewhere else.
Part of the code is below
<table cellpadding="5" cellspacing="5" border="0">
<tr>
<td>
<strong>A/A</strong>
</td>
<td>
{arithmos_ait}
</td>
</tr>
<tr>
<td>
<strong>Αιτούμενος Φορέας</strong>
</td>
<td>
{name_ait}
</td>
</tr>
<tr>
Hi kalkal,
You have to make sure that there is an entry in the form data before you send the email. You don't say what the code is that you posted. If it is from the Form HTML in a Custom element then it won't do anything except to display the value in the form. You need to add it to a hidden input, or look it up again in the On Submit event if you want to use it in the Email template.
Bob
You have to make sure that there is an entry in the form data before you send the email. You don't say what the code is that you posted. If it is from the Form HTML in a Custom element then it won't do anything except to display the value in the form. You need to add it to a hidden input, or look it up again in the On Submit event if you want to use it in the Email template.
Bob
in the custom element with field name and field ID name_ait I have this code
<?php
$user =& JFactory::getUser();
$form->data['user_id'] = $user->id;
?>
<p>
<?php echo $user->name; ?></p>
Then On Submit event I put an Email action with the template I wrote previously.
Do I have to use a hidden box? And If yes what value should have in it.
<?php
$user =& JFactory::getUser();
$form->data['user_id'] = $user->id;
?>
<p>
<?php echo $user->name; ?></p>
Then On Submit event I put an Email action with the template I wrote previously.
Do I have to use a hidden box? And If yes what value should have in it.
This topic is locked and no more replies can be posted.