Hello everyone.
I’m using the Forms api v3 to create and submit forms and i’m not being able to define fields that are not existing in the objects already existing in Hubpost (like the Contact, Company, etc).
For example, here’s a field that we want to create but the api fails when including it:
...
{
"groupType": "default_group",
"richTextType": "text",
"fields": [
{
"objectTypeId": "0-1",
"name": "campaign_name",
"label": "Campaign Name",
"required": False,
"hidden": False,
"fieldType": "single_line_text",
},
],
},
...
The weirdest thing is that this works when I want to create this form in the test account given by hubspot in the developer account. But, when I want to create this form in any other account a not very descriptive error appears (internal error).
If anyone has a clue of what is happening I appreciate the help. Thanks!