+ Start a Discussion
Apex Code DevelopmentApex Code Development 

Unable to know the reason why Web to Lead form is not working



I went into the web to lead section of Salesforce and generated the code that is attached in two files. I gave this code to a third party vendor/marketing company so that they can put our Salesforce web to lead generated code on their website so that students can go to their website and fill our form. We tested this on 6/27 and it was successful, meaning the company got a message--- automatically generated by Salesforce?---that the test student has successfully submitted the form. A month later, they tested again on 7/27, but this time they got the message below and they feel that it did not go through successfully.


They want to be able to know every time the student successfully submits the form so that they can charge us for every student that goes to their site and completes the form.


Please help….


Thank you


Jagadeesh K.



Post Data:




Your System’s response:


Code: 200 OK


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">




<meta http-equiv="Refresh" content="0; URL=http://www.force.com">



var escapedHash = '';

var url = 'http://www.force.com';

if (window.location.hash) {

   escapedHash = '%23' + window.location.hash.slice(1);


if (window.location.replace){

window.location.replace(url + escapedHash);

} else {;

window.location.href = url + escapedHash;