<?php
$country = $hook->getValue('field1020');
switch($country){
case "France":
$hook->formit->options['emailCC'] = '[email protected]';
break;
case "Netherlands":
$hook->formit->options['emailCC'] = '[email protected]';
break;
}
return true;This question has been answered by dverpoort. See the first response.
<?php
$country = $hook->getValue('field1020');
switch($country){
case "France":
$email = '[email protected]';
break;
case "Netherlands":
$email = '[email protected]';
break;
}
$hook->setValues(array(
'sendCC' => $email
));
return true;&emailCC=`[[+sendCC]]`
<?php
$country = $hook->getValue('field1020');
switch($country){
case "France":
$hook->formit->[b]config[/b]['emailCC'] = '[email protected]';
break;
case "Netherlands":
$hook->formit->[b]config[/b]['emailCC'] = '[email protected]';
break;
}
return true;