APIs & Integrations

mclopez
Member

Hubsot Form via API legal checkbox (abo type)

Hi everyone...

I hope somebody can help me out with my issue I am currently facing. I have a simple form connected to the Hubspot API. All fields get populated correctly – except the legal checkbox. Error Message withi Hubspot "this value was not passed to the contact record "legal_consent" is not valid". I thought "legal_consent" is the name field for this checkbox value...

What is the name field value to transmit to hubspot?

Thanks in advance folks... 😉
Best Michael

0 Upvotes
5 Replies 5
mclopez
Member

Hubsot Form via API legal checkbox (abo type)

Hey @Jaycee_Lewis ...

THX for your reply.
So that's a screenshot of the data sent & the html rendered. Not sure what the legal field should be to be accepted by hubspot.

 

mclopez_0-1717060279889.png

 

image.png

 

The legal_consent should be the legal checkbox, the subscription type which could be set for the forms image.png

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Hubsot Form via API legal checkbox (abo type)

Hey, @mclopez 👋 Can you share an example of the request body you are sending? 

 

Thanks! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
mclopez
Member

Hubsot Form via API legal checkbox (abo type)

Hi @Jaycee_Lewis ...

I still could not manage getting it to work...;(

That is the request, the property should be the consent within hubspot "legal_consent"
Maybe it's not the right property name... not sure


Thanks in advance for your help, appreciate it...

 

mclopez_0-1717747426068.png

 

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Hubsot Form via API legal checkbox (abo type)

Hey @mclopez 👋 Have you tried `hs_legal_basis` instead? 

CleanShot 2024-06-07 at 11.40.53@2x.png

I set up a quick test form with those options added and used a test contact to make a submission. The property `hs_legal_basis` is what is getting updated in my test.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
mclopez
Member

Hubsot Form via API legal checkbox (abo type)

Hi @Jaycee_Lewis ...

well 😉 yes. Now the message is gone. 
Thank you so much... Is this documented anywhere?

Maybe you could give me a hint why this entry still is different somehow.
I have other entries showing explicitly the legal value under "other values"

mclopez_0-1717945456769.png


The new ones does not have this "other values". 

mclopez_1-1717945547268.png


Thanks in advance and have a great day...
Michael

 

0 Upvotes