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
Alfredo Ornelas 4Alfredo Ornelas 4 

Lead Source field update when creating Leads from web forms

Hi,
I'm new with Apex, can you share a code that I can add to my web to lead code to update "LeadSource" field with "Web2Lead" picklist value when creating a Lead from my web form?
Best Answer chosen by Alfredo Ornelas 4
Raj VakatiRaj Vakati
Here is the code you can link in web2lead form . 

<input type=hidden name="lead_source" value="Web2Lead" >
 

All Answers

Raj VakatiRaj Vakati
Here is the code you can link in web2lead form . 

<input type=hidden name="lead_source" value="Web2Lead" >
 
This was selected as the best answer
Alfredo Ornelas 4Alfredo Ornelas 4
Thanks