generate_object_form
A Generation Brief for a custom-object form.
generate_form rebuilds a form HubSpot already has. This one builds a form you defined with
create_object_form, which writes to a custom object instead of a contact.
Same deal as generate_form: it doesn't write code. It returns a Generation Brief — the fields,
the submission contract, your framework's conventions, an acceptance checklist — and your AI client
writes the code from it.
The one difference worth knowing: these forms submit to a different endpoint than contact forms, because writing to a custom object needs an authenticated call that the public form endpoint can't make. The brief carries the right URL; use it as given.
Generate code for a custom-object form
Build a framework-specific Generation Brief for a form created with create_object_form: the fields, the submission contract, framework conventions, and an acceptance checklist. As with generate_form, no code is generated server-side — you write it from the brief. Call list_form_targets for valid targets.
Parameters
| Name | Type | Description | |
|---|---|---|---|
formId | string | required | From create_object_form. |
target | "html" | "react" | "next" | "gatsby" | "vue" | "angular" | "express" | "nest" | required | — |
language | "ts" | "js" | optional | — |
styling | "plain-css" | "css-modules" | "tailwind" | optional | — |