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
Andy UtkanAndy Utkan 

Web to Lead Volunteer Signup Form Issue - Passing hidden parameters

Hello,
I am using a Web to Lead form for volunteer signup on the web site. I wanted to pass two hidden parameters to set values on the lead object, when the form is submitted.

These are the two lines of code I added to the form:
"
<input type=hidden name="leadsource" id="leadsource" value="Web Volunteer Form">
<input type="hidden" name="00N1U00000GRdQD" id="00N1U00000GRdQD" value="New Sign Up">
"
The custom field that comes with VS4 is set correctly (second line of code).
I can not get the first line of code to work. Standard Lead source field can not be set with this code.

Any help would be appreciated.

Here is the help page for the functionality for reference: https://help.salesforce.com/articleView?id=000327328&type=1&mode=1

And a final note; I tried using the field API name with capital letters in it. Same result.
Best Answer chosen by Andy Utkan
PabitraPabitra
Dear Andy,

Please write the name="lead_source" instead of name="leadsource".

Refer link: https://success.salesforce.com/answers?id=90630000000CmbXAAS

Thank you!
Pabitra

All Answers

PabitraPabitra
Dear Andy,

Please write the name="lead_source" instead of name="leadsource".

Refer link: https://success.salesforce.com/answers?id=90630000000CmbXAAS

Thank you!
Pabitra
This was selected as the best answer
Andy UtkanAndy Utkan
Thank you very much. I hope somebody will update that help article I referred to.
Ajay K DubediAjay K Dubedi
Hi Andy,

Use bellow code it may helpful for you :

<input type=hidden name="lead_source" id="lead_source" value="Web Volunteer Form">
<input type="hidden" name="00N1U00000GRdQD" id="00N1U00000GRdQD" value="New Sign Up">


Thanks,
Ajay Dubedi
Andy UtkanAndy Utkan
Thank you all.