Thursday 21 September 2006 6:09:21 am
Hi, I'm have a class (a feedback form) with the Enhanced Selection datatype. 4 items in a single choice list :
Europe
Asia
Africa USA I want to associate those geographical area with a e-mail address to use this address as recipient. I looked in the standard feedback_form.tpl:
{set-block scope=root variable=email_receiver}{$object.data_map.recipient.content}{/set-block}
and tryed this:
{set-block scope=root variable=email_receiver}
{switch match=$object.data_map.geographical_area.content}
{case match="Europe"}
[email protected]
{/case}
{case match="Asia"}
[email protected]
{/case}
{case match="Africa"}
[email protected]
{/case}
{case match="USA"}
[email protected]
{/case}
{/switch}
{/set-block}
But this doesn't seems to work as this is the .ini default AdminEmail which is used. Any hint ? Reagrds. Laurent
|