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"}
first@domain.com
{/case}
{case match="Asia"}
second@domain.com
{/case}
{case match="Africa"}
third@domain.com
{/case}
{case match="USA"}
fourth@domain.com
{/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
|