Reply
Regular Contributor
Buell
Posts: 94

Web to Lead Form HTML Validation Errors

Not sure where to post this but I am recieving htlm validation errors on custom form field ID's. 

 

<input type="hidden" name="00N40000001ug5L" id="00N40000001ug5L" value="1" /> 

 

Apparently id's cant start with a number like the '0' above.  Any ideas on how to work around this?

Super Contributor
werewolf
Posts: 3,520

Re: Web to Lead Form HTML Validation Errors

Is this the standard autogenerated W2L form that's giving you this trouble?
Regular Contributor
Buell
Posts: 94

Re: Web to Lead Form HTML Validation Errors

Yes, it is for xhtml 1.0 transitional, if that helps.
Trusted Contributor
rpr2
Posts: 440

Re: Web to Lead Form HTML Validation Errors

I had the same issue and submitted a case (02353515) to Support.  Here's the response I got:

 

"My apologies for the delay in getting this reponse to you.
We are generating code that is not valid for customer fields. These fields cannot be used in scripting.
However, what we support is the generated code, and not scripted code on a customer website.
You have a couple of options:

1. Build the form in whatever format, and only worry about the IDs that salesforce requires when they actually do the POST. The POST can be done with your owncustomer code, rather than a form POST button.

2. Create an API integration rather than using Web2Lead.

Neither of these are as easy as scripting, but this behavior won't change for at least the next couple of releases. "

 

Rhonda

Regular Contributor
Buell
Posts: 94

Re: Web to Lead Form HTML Validation Errors

Wow, that's a little cryptic.  I would have contacted support for this issue but I'm now going on 4 months with no response (outside the automated garbage) on my last case. 

 

I ended up replacing the ID's with some text and everything passed through and validated just fine.  We are using ringlead which may be a factor as to why it still functions with a random ID.