APIs & Integrations

Petra8
Membre

Possibility of attaching external shopping cart to HubSpot form

Hey,

 

I am trying to attach shopping cart from my React App to my HubSpot form, but so far unsuccessfully.

 

I am using react-hubspot-form package as my form provider. 

If I do onSubmit={() => console.log(cart)it passes the values just fine, but to actually recieve the values with the form I tried to create hidden field/ticket in my form and attach the cart to it, but I am not sure how to handle it in react.

 

JavaScript with jQuery would look like this: 

onFormSubmit={function($form { jQuery( 'input[name="TICKET.content"]'.val(cart).change()}}

 

While content is ticket property name and cart is my react property that includes all products added to cart. 

 

Is it possible to achieve what I need with react-hubspot-form? Does anyone has experience with it? 

 
0 Votes
1 Réponse
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Possibility of attaching external shopping cart to HubSpot form

@tjoyce , would you be able to help @Petra8 here? 🙏

0 Votes