+ Start a Discussion
LawranceLawrance 

How to enabable web to lead data hidden from user?

I am enabling Web to Lead functionality but would like to pass data through the form that is invisible to the person completing the form.  For example, on my Web site I want to have a link that says 'Sign up to our newsletter', on clicking this the user is taken to a Web to Lead form where they are asked for a name, email address etc.  I have a Lead checkbox field called 'newsletter' that I want to set to 'T' for leads set up through this Web to Lead form but I do not want the person filling in the field to have to click on this checkbox.  I do however what the Web to Lead form input to contain a value of 'T' for this field.

 

I realise that there are a few ways to get around this particular example, (set the default for this field to 'T' for example) but I am looking for a generic solution here that I can use in other instances.

 

Thanks in advance

Lawrance

Best Answer chosen by Admin (Salesforce Developers) 
skodisanaskodisana

Hi,

 

Please use the below format for hidden fields.

In below name is the salesforce Id of the field newsletter and Value is 'T'.

Please insert this in your web to Lead form code in the hidden fields sections.

 

 

 

<input type="hidden" name="00N80000003xww1" value="T" />

 

Thanks,

Kodisana

 

All Answers

skodisanaskodisana

Hi,

 

Please use the below format for hidden fields.

In below name is the salesforce Id of the field newsletter and Value is 'T'.

Please insert this in your web to Lead form code in the hidden fields sections.

 

 

 

<input type="hidden" name="00N80000003xww1" value="T" />

 

Thanks,

Kodisana

 

This was selected as the best answer
LawranceLawrance

Many thanks indeed Kodisana!