I have written a trigger to assign a new lead to the owner based on certain logic.
When I manually create the lead, the logic works perfectly i.e assigns the lead correctly.
However, we are not going to manually create leads, the leads will be created from the web2lead form.
When I submit the lead from the Web2Lead form, the lead owner is the the default owner set up in the Lead Settings.
How Can I ensure the leads submitted from the web form are assigned based on the trigger logic and not to the default owner. ?