You need to sign in to do that
Don't have an account?
Stacy Sennott
Web-To-Lead Form with Hidden Fields and Default Values not working
Hi,
I have included the following code in my Web-To-Lead form but it does not seem to be working to input the correct default values I have specified
<input type=hidden name="lead_source" value="Web">
<input type=hidden name="company" value="Onassis Foundation (USA)">
<input type=hidden name="00N37000004HPYD" value=true>
The last line refers to a check box with the id code refernenced to return a TRUE value upon Submission of Form.
Here is the link to the test form, which shows these fields to be hidden just above the code for the first visible info in the form. But when I check in my Salesforce database, the default values are not specified upon Submitting:
http://www.onassisusa.org/onassis-form-test2.html
Your help is appreciated!
I have included the following code in my Web-To-Lead form but it does not seem to be working to input the correct default values I have specified
<input type=hidden name="lead_source" value="Web">
<input type=hidden name="company" value="Onassis Foundation (USA)">
<input type=hidden name="00N37000004HPYD" value=true>
The last line refers to a check box with the id code refernenced to return a TRUE value upon Submission of Form.
Here is the link to the test form, which shows these fields to be hidden just above the code for the first visible info in the form. But when I check in my Salesforce database, the default values are not specified upon Submitting:
http://www.onassisusa.org/onassis-form-test2.html
Your help is appreciated!
You have special quotes for the hidden (you must have cut and paste from somewhere), make sure it's the regular standard double quotes.
Thx
Also, if that still does not work, you can always unhide them to see if that work then hide them once you get them working.
Thx
All Answers
Second the name/id needs to be exact, for example:
your form has this: <input type=hidden name="LeadSource" value="Web"> -- WRONG
Thx
If you still have issues, then check to ensure the name is accurate.
Thx
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
Thanks
<input type=hidden id=“lead_source" name=“lead_source" value="Web">
<input type=hidden id=“company" name=“company" value="Onassis Foundation (USA)">
<input type=hidden id="00N37000004HPYD" name="00N37000004HPYD" value=“1”>
You have special quotes for the hidden (you must have cut and paste from somewhere), make sure it's the regular standard double quotes.
Thx
Also, if that still does not work, you can always unhide them to see if that work then hide them once you get them working.
Thx
Thx