Skip to content
AM

Defining a form

Open /sites/:siteId/forms to create and maintain site form definitions.

  1. Select New Form.
  2. Enter a name, slug, optional notification email, and status.
  3. Add fields, choose each field type, and mark it required or optional.
  4. Select Save Form.

The page persists definitions through upsertStudioFormDefinition. Edit, duplicate, change status, or delete a form from its action menu. Deleting a definition also deletes its related submissions after confirmation.

The page generates a script embed in this form:

<script src="https://example.com/forms/contact.js"></script>

It does not generate an iframe. Copy Embed copies the script, and Preview opens the site’s /forms/:slug URL when a domain or preview URL is available.