You need to sign in to do that
Don't have an account?
Andy 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.
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.
Please write the name="lead_source" instead of name="leadsource".
Refer link: https://success.salesforce.com/answers?id=90630000000CmbXAAS
Thank you!
Pabitra
All Answers
Please write the name="lead_source" instead of name="leadsource".
Refer link: https://success.salesforce.com/answers?id=90630000000CmbXAAS
Thank you!
Pabitra
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