Add a form_type
-
Hi, I’ve seen where to edit the Salesforce API url. Would it be possible, however, to have more than one destination url? One for testing and one for production? Can I add a form_type? Something like this:
if ($ form_type == ‘case’) {
$ url = ‘https://webto.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8’;
}
else
{
if ($ form_type == ‘lead_test’) {
$ url = ‘https://webto.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8’;
}
else
{
$ url = ‘https://test.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8’;
}
}Thank you so much and sorry for my english !!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Add a form_type’ is closed to new replies.