lshade
Forum Replies Created
-
Yes either remove or comment out the print statement above. I thought I had commented these out. I left them in for debugging purposes when trying to get this to work with the web-to-case.
Here is a link to a page with the php/plugin file.
[SOLVED] – salesforce.php was missing the case for a multi-set field from Gravity forms. Code was always looking for an Array in “inputs” when form meta table has it listed under “choices”. Other challenge was pulling the correct data from the $_POST. Had to make additional modes to be able to use the php implode already in the code.
Many print and print_r later with die() enabled I have it working and imports properly into salesforce.
Currently working to get Web-To-Case working – need to add variable to Form Settings page and check while in the push function to select the correct serverlet from Salesforce
How does salesforce.php add [enableSalesforce] to form meta table.
Have implemented input to toggle between Wed-To-Lead and Web-To-Case but need to store value in form meta table.Can gravity forms work with multiple “add-ons” at one time. Can I just change the single line as noted above and install this as another plugin
I have done so with no luck.
The FAQ also mentions it is possible to put this in the Admin Label field. This did not work either.
I have also tried entering Product_Picklist__c in the following combinations:
Admin Label
Parameter Name
both Admin Label and Parameter NameValues make it to Salesforce for all input fields except for the picklist.
here is the web address of the form on the staging server – I am using a Multi-set field on the form for the picklist
http://wp.allegrosoft.com/contact-us
I have tried selecting a single item and multiple items from the picklist with no success.
In line 378 of salesforce.php in the plugin has the following –
$result = wp_remote_post(‘https://’.$sub.’.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8′, $args);
Our website uses salesforce for both leads and support cases. It would be great if there was a way to add a parameter on the FORMS page to indicate if it is a lead or case form. If a lead then use the above statement, if a case use the following
$result = wp_remote_post(‘https://’.$sub.’.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8′, $args);