Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Salesforce Web-to-Lead forms

I'm using a Salesforce Web-to-Lead form on a website i'm working on.

I want the same form to appear in 2 places, in the footer but also in a fixed position div.

Because the labels and inputs have the same ID they are conflicting with my form validation and behaving erratically.

Is there an easy way to fix this?

Thanks in advance, George

like image 337
George Wiscombe Avatar asked Dec 12 '25 15:12

George Wiscombe


1 Answers

Form key/value pairs (in HTML in general, not just SFDC of course) are submitted based on form element NAME attributes, not ID. So just remove the ID tags (or change them if they are being used by your custom validation).

like image 119
jkraybill Avatar answered Dec 14 '25 20:12

jkraybill



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!