• leo130

    (@leo130)


    I am using this plugin along with the Forms: 3rd-Party Integration plugin to connect my CF7 multi-step forms to Salesforce. Step 1 of 2 maps perfectly fine, but step 2 of 2 does not submit any data. Do you know this is a known error? How do I fix this? It seems like the data is being understood by the array, so I don’t know why Step 2 of 2 data is not being sent to Salesforce…. Thanks!

    Array
    (
    [_wpcf7] => 210
    [_wpcf7_version] => 4.4.2
    [_wpcf7_locale] => en_US
    [_wpcf7_unit_tag] => wpcf7-f210-p208-o1
    [first-name] => Thursday
    [last-name] => 3:27pm
    [phone] => 222-333-3333
    [zipcode] => 89990
    [when-injury] => Less than a year ago
    [action-taken] => Demand for compensation made
    [step] => 2-2
    [_wpcf7_is_ajax_call] => 1
    [injury-type] => Headaches
    [case-description] => Something wicked this way comes.
    )

    *** Post (to Service) ***
    Array
    (
    [timeout] => 10
    [body] => Array
    (
    [oid] => XXXXXXXX
    [lead_source] => web
    [submit] => submit
    [first_name] => Thursday
    [last_name] => 3:27pm
    [phone] => 222-333-3333
    [when_injury__c] => Less than a year ago
    [action_taken__c] => Demand for compensation made
    [injury_type__c] => Headaches
    [case_description__c] => Something wicked this way comes.
    )

    )

    *** Response ***
    Array
    (
    [headers] => Array
    (
    [date] => Thu, 12 May 2016 22:28:33 GMT
    [set-cookie] => BrowserId=CwyScji-XXXXXXXXX;Path=/;Domain=.salesforce.com;Expires=Mon, 11-Jul-2016 22:28:33 GMT
    [expires] => Thu, 01 Jan 1970 00:00:00 GMT
    [cache-control] => private,s-maxage=0
    [content-type] => text/html;charset=UTF-8
    [connection] => close
    )

    [body] =>
    [response] => Array
    (
    [code] => 200
    [message] => OK
    )

    [cookies] => Array
    (
    [0] => WP_Http_Cookie Object
    (
    [name] => BrowserId
    [value] => CwyScji-Qruv6YFHEr1M3A
    [expires] => 1468276113

    https://ww.wp.xz.cn/plugins/contact-form-7-multi-step-module/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Does the form work without the Multistep plugin? The multistep plugin saves previous steps in a cookie within the browser. On the final step it adds the data from the previous steps to the posted data so that it submits like a normal contact 7 form.

    Thread Starter leo130

    (@leo130)

    If I remove the Multi-Step plugin and just submit Form 2 by itself, the two fields are correctly populated in Salesforce, but when I put in the multi-step capability, only data from Form 1 shows up in Salesforce, even though all of the fields show up correctly with their corresponding Salesforce fields in my 3rd Party Integration debug Array.

    Plugin Author webheadcoder

    (@webheadllc)

    Not sure about the other plugin, but I can tell you about the multi-step plugin. The multi-step plugin adds in the data from the previous steps in the “wpcf7_posted_data” filter, priority 9. If the 3rd party integration plugin is looking at the posted data before that, then you’ll need to figure out a way to adjust that.

    Thread Starter leo130

    (@leo130)

    So, if i need to change what the 3rd Party Integration plugin is looking at, then which .php file should I be making changes to? Just the /forms-3rdparty-integration/plugins/contactform7.php? I tried changing post_type

    /**
    * Returns an array of the plugin’s forms, loosely as ID => NAME;
    * will be reformatted into ID => NAME by @see GET_FORM_LIST_ID and @see GET_FORM_LIST_TITLE
    */
    protected function GET_PLUGIN_FORMS() {
    // since they’re stored as a custom post type
    return get_posts( array(
    ‘numberposts’ => -1,
    ‘orderby’ => ‘ID’,
    ‘order’ => ‘ASC’,
    ‘post_type’ => ‘wpcf7_posted_data’ ) );
    }

    Thread Starter leo130

    (@leo130)

    Also, I looked at the file /forms-3rdparty-integration/forms-3rdparty-integration.php. I was wondering if I could add code here to set to conditionally send the data to Salesforce only when the array sees [step] => 2-2 ?

    // now we can conditionally check whether use the service based upon submission data
    $use_this_form = apply_filters($this->N(‘use_submission’), $use_this_form, $submission, $sid);
    if( !$use_this_form ) continue;

    Thread Starter leo130

    (@leo130)

    Something like adding if ($curr_step != $last_step) continue;

    Plugin Author webheadcoder

    (@webheadllc)

    I don’t know where in the 3rd party integration plugin to modify. You may want to ask questions on their forum.

    As for getting the current step, you can probably use $curr_step = cf7msm_get('step'); to get the current step.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Conflict with Forms: 3rd-Party Integration plugin?’ is closed to new replies.