Defining a form
Open /sites/:siteId/forms to create and maintain site form definitions.
- Select New Form.
- Enter a name, slug, optional notification email, and status.
- Add fields, choose each field type, and mark it required or optional.
- 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.
Related
Loading index…