issue with the Forms API, Hidden fields

When I set a field to hidden in the HubSpot form editor and publish the form, all field configurations returned via the API still show hidden: false.

Am I missing something or doing something wrong?

Hi @Mc12,

I’m assuming you are using the “new” (not legacy) forms and the Get a form definition endpoint:

https://api.hubapi.com/marketing/v3/forms/{formId}

If so, it’s not something you are doing wrong. It appears that there might be a bug with the new/default forms editor - it returns the same “hidden: false” for me as well when the field is hidden in the UI.

Confirming the endpoint works properly for legacy forms and indicates which fields are hidden:

If you want more dev control over the forms, I suggest using the legacy forms, as there are still quite a few quirks with the new forms that need to be ironed out.

Hope this helps!