Reply
Newbie
E-vision
Posts: 1

HTML code to populate a field in my Web-2-Lead form

Hello

I am a SF Group Edition (GE) admin, and I am looking for a piece of HTML code to assist me in
my web-2-Lead form.

The 'Company' field in the Leads tab is a required field, and since we are a B2C organization we
populate this field with the Lead's Full Name. Not ideal but it gives me flexibility to utilize built-in
SF functionality, specifically Lead Conversion.

When the HTML form is generated by SF, the 'Company' field appears in the form. I do not want
our users to see this field on the registration form, since it holds no relevant value during registration.
I would like to hide the company field on the website form, and then automatically populate it before it
is sent to SF. Ideally I would like the field to be populated with the lead's 'Full Name', or at the very least
have an automatic default value so the record could be created.

I do not have enough HTML experience to implement or know where to begin, but I am assuming it should not be too difficult
since there is already code for hidden fields.

Your help is appreciated