2

I have created a web to lead form in salesforce but I cannot seem to default standard fields such as Lead Source = 'Web'. This should be hidden from the user creating the form. I am using the below but does not seem to be working, any ideas?

<input type=hidden name=“LeadSource” value=“Web”>

2 Answers 2

3

Try this:

<input type="hidden" id="lead_source" name="lead_source" value="Web" />

The easiest way to figure it out is to add the field in the web-to-lead form creator and then find the name and id.

1
  • I have been trying variations of this (form code is hardcoded into a wordpress template, no plugins) and nothing seems to be successfully passing back into salesforce. Any ideas why this may be happening?
    – GPP
    Commented Feb 5, 2016 at 8:24
0

In The Lead Source Set a Default value only in picklist option

<p style="display: none;" >
<label for="lead_source">Lead Source</label>
<select  id="lead_source" name="lead_source">
   <option value="Web">Web</option>
</select>
</p>

to hide the lable using <p> tag style given as display:none;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .