Unset radio field value through Form API endpoint

SOLVE
Highlighted
Occasional Contributor

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

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
Occasional Contributor

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.

 

Reply
0 Upvotes
4 Replies 4
Highlighted
HubSpot Moderator

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": ""

 

Reply
0 Upvotes
Highlighted
Occasional Contributor

Hi WendyGoh,

 

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

Reply
0 Upvotes
Highlighted
HubSpot Moderator

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?

Reply
0 Upvotes
Highlighted
Occasional Contributor

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.

 

Reply
0 Upvotes