Viewing 1 replies (of 1 total)
  • I am also looking for a way to integrate. Actually, I am trying to integrate gravity forms with Eloqua. I tried to add the following below to my functions.php file, but it hasn’t worked. Have you figured it out yet?

    add_action( ‘gform_after_submission’, ‘post_to_third_party’, 10, 2 );
    function post_to_third_party( $entry, $form ) {

    $post_url = ‘https://s1913652004.t.eloqua.com/e/f2’;
    $body = array(
    ‘first_name’ => rgar( $entry, ‘1.3’ ),
    ‘last_name’ => rgar( $entry, ‘1.6’ ),
    ’email’ => rgar( $entry, ‘2’ ),
    ‘country’ => rgar( $entry, ‘3’ ),
    );
    GFCommon::log_debug( ‘gform_after_submission: body => ‘ . print_r( $body, true ) );

    $request = new WP_Http();
    $response = $request->post( $post_url, array( ‘body’ => $body ) );
    GFCommon::log_debug( ‘gform_after_submission: response => ‘ . print_r( $response, true ) );
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Eloqua Integration’ is closed to new replies.