APIs & Integrations

Not applicable

Hubspot Froms API Retrieve IP and Hubspot HTK

SOLVE

Hey There, I've gone ahead and used the link https://developers.hubspot.com/docs/methods/forms/submit_form_ajax for the new hubspot form api to submit data.

My question is; what would I add to my react.js file to retrieve the users "hutk" and "ipAddress" so that I can include it in my code under the "context" object.

Thanks for your help!

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Hubspot Froms API Retrieve IP and Hubspot HTK

SOLVE

Hi @swoopamir,

Happy to help. My research turned up the following:

Retrieving cookie values with React.js:

Retrieving IP addresses client-side with JavaScript:

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
2 Replies 2
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Hubspot Froms API Retrieve IP and Hubspot HTK

SOLVE

Hi @swoopamir,

Happy to help. My research turned up the following:

Retrieving cookie values with React.js:

Retrieving IP addresses client-side with JavaScript:

Isaac Takushi

Associate Certification Manager
0 Upvotes
Not applicable

Hubspot Froms API Retrieve IP and Hubspot HTK

SOLVE

amazing @Isaac_Takushi Thanks for the help, i got the cookies and ip addresses working to hubspot.