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!!
31k questions
32.8k answers
501 comments
693 users