# Forms and submissions

URL: https://kywi-docs-production.up.railway.app/authoring/forms-and-submissions
Type: docPage

A form reaches a page via a module that looks it up by slug; submissions live in a table with no hard link back — trashing the form hides them.

A form is an ordinary content node — its fields, its steps, the success message, the redirect URL and the notify-on-submit addresses all live on that one record, so building, editing and [trashing](/authoring/trash-and-recovering-deleted-work/) a form works exactly like any other content.

## How a form reaches a page

The `form` and `formEmbed` modules place a form on a page by its **slug**, not by a fixed reference to the record you built — rendering, validation and the success behaviour are all looked up fresh from the form definition at the moment someone visits the page. Change a field on the form and every page embedding it picks up the change immediately; there's nothing to republish on the page side.

## Where submissions live

A submitted entry is stored in a table of its own, keyed by the form's content id — but that key isn't a hard database link back to the form. Unlike version history, which is set up to be removed automatically when its content is, a submission has no such tie: nothing in the database keeps the two in step for you.

## Trashing a form hides its submissions, briefly

Looking up a form to list its submissions skips anything in Trash, so trashing a form makes its submissions list read "Form not found" even though every submission row is still there, untouched. Restore the form and the list comes back exactly as it was — nothing about this loses data on its own.

## Permanently deleting a form orphans its submissions for good

Deleting a form from Trash removes only the form's own content row. With no database link between a form and its submissions, nothing cleans those rows up or moves them anywhere — they stay in the database, unreachable, because every submissions route looks the form up by slug first and finds nothing. If you need a form's responses, export or record them before permanently deleting it — there's no recovering them through the product afterward.
