APIs & Integrations

Samaritan
Mitglied

Unset radio field value through Form API endpoint

lösung

Hi,

 

We have a properties on a contact that is a radio select, with values of yes and no. We have a custom interface that allows the user to update their details and it includes allowing them to unset the yes/no property. We are having trouble then passing that unset value back into hubspot via the Forms API endpoint. Is that possible?

 

Thanks,

Henry

0 Upvotes
1 Akzeptierte Lösung
Samaritan
Lösung
Mitglied

Unset radio field value through Form API endpoint

lösung

Hi @WendyGoh ,

 

I have since confirmed with HubSpot support that this is not possible through the Forms API. I've implemented a solution using the V3 Objects API now.

 

Thanks for your help.

 

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
4 Antworten
WendyGoh
HubSpot Employee
HubSpot Employee

Unset radio field value through Form API endpoint

lösung

Hey @Samaritan,

 

Just to clarify, are you looking to pass a 'null' value to a radio select property via the HubSpot Form API?

 

If so, you can unset/pass a 'null' value to a radio select property via the HubSpot Form API by setting the value to be "". Something like this:

 

      "property": "radioselectunset",
      "value": ""

 

0 Upvotes
Samaritan
Mitglied

Unset radio field value through Form API endpoint

lösung

Hi WendyGoh,

 

We have tried that I'm afraid, and the API says "thanks for submitting the form" however the field doesn't update.

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

Unset radio field value through Form API endpoint

lösung

Hey @Samaritan,

 

Did you include the email field on the second submission? 

 

Could you share with me the page that the form is on and an example of your code snippet?

0 Upvotes
Samaritan
Lösung
Mitglied

Unset radio field value through Form API endpoint

lösung

Hi @WendyGoh ,

 

I have since confirmed with HubSpot support that this is not possible through the Forms API. I've implemented a solution using the V3 Objects API now.

 

Thanks for your help.

 

0 Upvotes