Back
You can make sure that you have provided the URL so that, it will make a request to POST.
var options={ url:"https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8", form:form};
var options={
url:"https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8",
form:form
};
I hope this will help.
Want to become a Salesforce expert? join Salesforce Developer Certification now!!
30.9k questions
32.9k answers
500 comments
665 users