Send data from Gravity Form on each form step

Hello

I use the WP Gravity Forms plugin and I need to send data on each step of the multistep form. At least I want to send name and email from the first form step and after, if the user finished form I want to send data again to the HS

The question is: is it possible to send data from Gravity Form to HS on each form step. If so, how can I configure sending?

Thanks

Hi @dmytro

Thank you for reaching out.

I want to tag some of our experts on this - @tjoyce @Mike_Eastwood @Jake_Lett @Kevin-C do you know if that’s something possible and how to do it?

Thank you!

Best

Tiphaine

Hi @dmytro

It’s possible to “hook” the multi-page Gravity form and push the information into HubSpot using the HubSpot API.

Unfortunately, if you’re not a geek then nothing I just said will make any sense.

You will need custom code to achieve what you want.

Please send me a message if you need someone to build something for you.

Cheers

Mike

p.s. have you played with the Gravity Form HubSpot Plugin?

Hello @Mike_Eastwood

Thanks, I’ll try this option with API

I get this answer from GF support:

I use the WP Gravity Forms plugin and I need to send data on each step of the multistep form. At least I want to send name and email from the first form step and after, if the user finished form I want to send data again to the HS

The question is: is it possible to send data from Gravity Form to HS on each form step. If so, how can I configure sending?

Thanks


For now, option a) works for me, but it’s not perfect. In this case, I have to split one huge multiform into a few smaller parts and send the name and the email from one form to another

Here is my solution: I installed the Partial Entries addon (Elite License Plan required). This addon can save entries to WP on each step. To send to the HS form on each step I added this code from [this link](http:// gform_partialentries_post_EVENT - Gravity Forms Documentation)

<?php

add_action( 'gform_partialentries_post_entry_saved', 'send_to_hubspot_on_partial_entry_saved', 10, 2 );
function send_to_hubspot_on_partial_entry_saved( $partial_entry, $form ) {
 GFCommon::log_debug( __METHOD__ . '(): running.' );
 if ( function_exists( 'gf_hspot' ) ) {
 $partial_entry['status'] = 'partial';
 GFCommon::log_debug( __METHOD__ . '(): trigger Hubspot for Partial Entry: ' . print_r( $partial_entry, true ) );
 gf_hspot()->maybe_process_feed( $partial_entry, $form );
 }
}

Note: this option allows to send data to HS on the very last step and one intermediate step