• Hi Guys,

    I am using this plugin to submit my Gravity form’s data to a third party. Its sending data successfully but sending all the fields as a single string. Please see the following how it is sending:

    @Formheading: Web Form@Name: ABC@Mail: abc@example.com@CopntactPhone: (553) 622-6653@Title: Test Title@Details: This is test form submission to test the form sending data to third party or having any trouble?

    These are my third party variables:
    @Formheading
    @name
    @mail
    @ContactPhone
    @title
    @details

    I want to send data separately to all variables like this instead of above:
    @Formheading: Test Heading
    @name: Test Name
    @mail: test@example.com
    @ContactPhone: (553) 622-6653
    @title: Test Title
    @details: These are test details of my issue.

    Please help in this issue as soon as possible if you can. I will be grateful and any of your help is highly appreciated.

    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author zaus

    (@zaus)

    I have no idea how that’s possible. What’s your setup (plugin, wp, php versions) and what’s the debug email look like? Please try to check the raw debug email, as it may be that your email client is just misformatting a correctly structured submission.

    Thread Starter Fahed Usman Rana

    (@fahed-usman-rana)

    Hi Zaus, Thanks for your time. I am also not sure why is that happening. I am using this with gravity form version 2.1.1, WordPress 4.7, PHP 5.4.31. The debug email I am receiving is as following:

    *** Service ***
    Array
    (
    [name] =>
    [url] => Thirdparty url
    [forms] => Array
    (
    [0] => gf_1
    )

    [success] =>
    [failure] =>
    [timeout] => 10
    [mapping] => Array
    (
    [0] => Array
    (
    [val] => 1
    [lbl] => Source
    [src] => Test
    [3rd] => @Formheading
    )

    [1] => Array
    (
    [lbl] => Name
    [src] => input_6
    [3rd] => @name
    )

    [2] => Array
    (
    [lbl] => mail
    [src] => input_2
    [3rd] => @mail
    )

    [3] => Array
    (
    [lbl] => ContactPhone
    [src] => input_3
    [3rd] => @ContactPhone
    )

    [4] => Array
    (
    [lbl] => Title
    [src] => input_4
    [3rd] => @title
    )

    [5] => Array
    (
    [lbl] => Details
    [src] => input_5
    [3rd] => @details
    )

    )

    )

    *** Post (Form) ***
    https://www.example.com/
    Array
    (
    [input_6] => Test Name
    [input_2] => test@test.com
    [input_3] => 56565356556
    [input_4] => Test
    [input_5] => This is test.
    [is_submit_1] => 1
    [gform_submit] => 1
    [gform_unique_id] => 4574547545455
    [state_1] => kfhgfhgfkjghfgkjfghfkghfkg=
    [gform_target_page_number_1] => 0
    [gform_source_page_number_1] => 1
    [gform_field_values] =>
    [Name] => Test Name
    [mail:] => test@test.com
    [ContactPhone] => 56565356556
    [Select Your Title] => Test
    [Tell Us What Happened :] => This is test.
    )

    *** Post (to Service) ***
    Array
    (
    [timeout] => 10
    [body] => Array
    (
    [@Formheading] => Test
    [@Name] => Test Name
    [@mail] => test@test.com
    [@ContactPhone] => 56565356556
    [@Title] => Test
    [@CaseNotes] => This is test.
    )

    )

    *** Response ***
    WP_HTTP_Requests_Response Object
    (
    [response:protected] => Requests_Response Object
    (
    [body] =>

    <!DOCTYPE html>

    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;
    <head id=”Head1″><title>

    </title></head>
    <body>

    </body>
    </html>

    [raw] => HTTP/1.1 200 OK
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Encoding: gzip
    Vary: Accept-Encoding
    Server: Microsoft-IIS/8.5
    X-AspNet-Version: 2.0.50727
    X-Powered-By: ASP.NET
    Date: Mon, 19 Dec 2016 16:57:47 GMT
    Connection: close
    Content-Length: 233

    <!DOCTYPE html>

    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;
    <head id=”Head1″><title>

    </title></head>
    <body>

    </body>
    </html>

    [headers] => Requests_Response_Headers Object
    (
    [data:protected] => Array
    (
    [cache-control] => Array
    (
    [0] => private
    )

    [content-type] => Array
    (
    [0] => text/html; charset=utf-8
    )

    [content-encoding] => Array
    (
    [0] => gzip
    )

    [vary] => Array
    (
    [0] => Accept-Encoding
    )

    [server] => Array
    (
    [0] => Microsoft-IIS/8.5
    )

    [x-aspnet-version] => Array
    (
    [0] => 2.0.50727
    )

    [x-powered-by] => Array
    (
    [0] => ASP.NET
    )

    [date] => Array
    (
    [0] => Mon, 19 Dec 2016 16:57:47 GMT

    )

    [content-length] => Array
    (
    [0] => 233
    )

    )

    )

    [status_code] => 200
    [protocol_version] => 1.1
    [success] => 1
    [redirects] => 0
    [url] => Thirdparty url
    [history] => Array
    (
    )

    [cookies] => Requests_Cookie_Jar Object
    (
    [cookies:protected] => Array
    (
    )

    )

    )

    [filename:protected] =>
    [data] =>
    [headers] =>
    [status] =>
    )

    Please check and guide further. Appreciate your help and time.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Data posted to third party is sending as a single string.’ is closed to new replies.