There is another way.
Create a before_save logic hook on Leads that check if the team_id is empty and set it to your "team A" id.
That way any lead that is saved from the WebtoLead form will have that team id.
With some extra logic you could even set it to different ones.
if you do not know how to create the logic hook use the editLogicHooks tool in my signature to create the hook and put something like this into it.
PHP Code:
if (empty($bean->team_id))
$bean->team_id = id_of_your_default_team;
or to set the assigned user's default_team.
PHP Code:
if (empty($bean->team_id))
{
require_once "modules/Users/User.php";
$user = new User;
$user->retrieve($bean->assigned_user_id))
$bean->team_id = $user->default_team;
}
M
Bookmarks