function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VK86VK86 

Using Lead assignment rules in Web 2 Lead form

Hello all,

 

I have a Lead Assignment rule setup and want to use it in the Web2Lead form.

I see that we can hard code any field value using 'hidden' code in the form (example: <input type=hidden name="lead_source" value="Website Catalog Request"> )

 

I am aware that we can set the Assignment rule header to TRUE by default but this will be set even if a user creates a new Lead manually.

 

Please let me know if we can use an Assgnment rule in the form itself; that way the rule will be active only for leads coming in from web.

 

Thanks,

VK

Best Answer chosen by Admin (Salesforce Developers) 
*werewolf**werewolf*

You don't really need to do anything to your form to make assignment rules run; they generally just run themselves for Web To Case and Web To Lead.

All Answers

*werewolf**werewolf*

You don't really need to do anything to your form to make assignment rules run; they generally just run themselves for Web To Case and Web To Lead.

This was selected as the best answer
VK86VK86

Thanks WereWolf!

 

I tested this out and it works without adding any code in the W2L form.

 

Thanks,

VK