Forms Registration Quizzes and Surveys
Forms are project data-collection resources with schemas, responses and optional attendee-facing plugin installations. A developer's app configuration form, a reusable form-template app and an attendee's project form are different objects.
Choose the form type
The supported current form_type values are:
| Type | Purpose |
|---|---|
standard | General-purpose collection of responses |
registration | Attendee registration and profile creation/update flow |
quiz | Questions, attempts and quiz scoring behavior |
survey | Survey responses; use poll_mode for poll behavior |
The older standalone poll type is deprecated. Feedback can be a survey use case, but feedback is not the current model's form-type enum. Choose the supported type before designing its questions and behavior.
Create and design
On the dashboard host, open /p/{team}/{project}/forms with the team/project slugs. The editor is /p/{team}/{project}/forms/{form} using the saved form slug. The permission catalog separates view_project_forms/manage_project_forms from response view/manage permissions; do not infer access to submitted personal data from access to edit the design.
- Open the project's Forms section and create a named form of the intended type.
- Supply the name and any description, theme/design or starter source offered by the create dialog. The current dashboard creation request slugifies the supplied slug/name with a random four-character suffix; inspect the saved slug before constructing API URLs or binding a portal link.
- Use the form editor to define fields/questions, required values, options, sections and presentation.
- Configure conditional/display logic through supported controls.
- Review active state and any opening/closing times configured for the form. Verify their effect on the actual delivery and submission paths you will use.
- Save, preview and submit representative values.
For registration forms, the creation flow can start from a same-project v2 form, generate a design from the chosen attendee type, or use the cross-type palette when no default type is selected. Generation seeds a form design; it is not a promise that later attendee-field layout edits automatically rewrite the saved form. Check the resulting fields, identity configuration and registration settings before accepting submissions.
The current system supports legacy field layouts and layout-engine v2 forms. Use the editor appropriate to the form's schema version; do not overwrite a v2 layout graph with a generic JSON sections example from another form system. A v2 graph uses root, cards and elements; settings-only saves are a different operation. A v2 graph written with legacy card vocabulary is rejected. A sections-only payload is not a graph replacement and can leave the existing v2 design unchanged; inspect the saved graph instead of treating a successful settings response as proof the layout changed. A blank registration form with no legacy sections can open in the layout builder even before its first graph save.
Field and layout design
Keep field keys stable, give inputs useful labels, and choose validation types matching the data you actually need. Use a realistic invalid value, an empty required value and long input when testing. Verify conditional fields do not leave an impossible required-field path.
Distinguish fields that capture attendee profile data from fields that belong to a response/question. A registration form must map identity/profile values through the supported attendee field configuration. Review the project's attendee types and identity settings before importing or accepting registrants.
Theme overrides
Form-specific form_theme is a sparse override map carried to the builder and registration-rendering payload. For example, the dashboard settings save (PUT /p/{team}/{project}/forms/{form}, using the operator’s admin session) can set one heading font:
{
"form_theme": {
"heading_1_font_family": "Georgia"
}
}
The map is replaced on save rather than merged key by key. Include every existing override you intend to retain; saving this example over a map with button overrides removes those absent keys. An empty map or null clears the form overrides. Preview alongside the portal’s theme settings and custom CSS, including mobile and focus states. This example is a dashboard form-settings payload, not a response submission or complete layout graph.
Form-template apps
An app using form/quiz APIs follows the toolkit convention formTemplate: true in its manifest. Starter questions go in the configuration document's formTemplate root array; admin plugin configuration belongs in additionalTabs. The capability flag is required for that convention even when the app ships no starter questions. Inspect the actual platform version flags too: a bundle manifest declaration is not proof that the stored version has is_form_template/lock_form_template enabled. An unlocked template seeds editable stored fields; an enabled locked template can reapply its version’s starter definition in the editor and disable editing. Check the selected version and lock settings when questions appear to revert. The separate form-level is_edit_locked flag rejects graph/field-definition updates through the dashboard controller with 403; it is not a promise that every settings-only save is forbidden.
Declare the supported form dependencies and create configuration selectors with matching identifiers. Resolve them to the actual project form when installing. See App Configuration and Permissions.
Attendee route and access
Attach the project form to a portal route or bind it into the app that presents it. Configure portal authentication and effective form/page/link audience rules. Guest registration and an authenticated attendee's own responses are separate paths.
Test public submission only when intended. A displayed form or an active flag is not permission to read all responses. Use the runtime store and supported response/registration/quiz operation IDs from the deployed API catalog; do not put a server integration key into the form's browser code.
Choose the API workflow
For portal-bound operations, use the host of the portal serving the form. Use /api/v1/projects/{team}/{project} as the project base. These paths have different purposes and payloads:
| Workflow | Relative paths | Principal/context to verify |
|---|---|---|
| Form definition/fields | GET /forms/{form} and GET /forms/{form}/fields | Effective page/project operation grants and field output |
| Standard/survey response operations | /forms/{form}/responses | Authorized response operations; values use the endpoint’s fields map |
| Current attendee’s responses | GET /my-responses/{form} | Portal attendee identity; not a guest/project-key replacement for identity |
| Registration | GET /registration-forms/{form} and POST /registration-forms/{form}/submit | Registration form type, active state, chosen registration mode, access code and page/credential context |
| Explicit registration self-update | PUT /registration-forms/{form}/me | Authenticated attendee; update the current attendee, not an arbitrary supplied attendee ID |
| Quiz attempts | /quiz/{form}/state, /start, /questions, /answer, /complete | Referencing portal-page context and attendee identity for attempts |
| Survey metrics | GET /survey/{form}/metrics and /live-results | Referencing portal-page context plus survey visibility rules |
Here {form} is the form slug. Preserve the runtime store’s page context when an App calls these operations; a valid token for an unrelated page/form can still produce 404. Quiz/survey page-context middleware requires an active referencing page and an allowed gate result. These portal-bound quiz/survey operations also refuse a page presented on a reserved platform API host: call the serving portal, not just a host accepting the same credential elsewhere. A project credential alone does not create a learner identity or replace that reference.
The stored scheduling fields are open_form_at and close_form_at. Treat availability as route-specific: the reviewed registration API resolver checks registration type and active state, but does not compare those timestamps. Do not use configured opening/closing times alone as a submission-security boundary. Reaching the design endpoint, seeing a preview or possessing response-write permission does not prove another API surface enforces the same availability checks. Test direct submission as well as the visible route, with the intended principal. Survey anonymity affects stored attendee association; it does not make every read/metrics operation public.
Update an existing generic form response
PUT or PATCH /api/v1/projects/{teamSlug}/{projectSlug}/forms/{form}/responses/{response} addresses a form by slug and an existing response by numeric response row ID. Supply the response ID explicitly; it is not the response UUID, attendee ID, subject ID or quiz-attempt ID. The parent query is project-scoped and the child comes from that form's responses relation.
The update policy maps to manage_attendee_form_responses, with additional form/page gates. For non-admin callers, the reviewed gate requires the serving portal's valid page context, an allowed page/group verdict and a reference to this form. A page key on a reserved platform/API host is not equivalent portal context. An authenticated Admin bypasses the extra FormPageAccess context checks, while ordinary policy authorization still applies. Update also passes the relation-fetch read-context gate before its write hook. Verify the actual host, transport, principal and allowed/denied cases; possessing submission capability alone does not prove response-edit authority.
This controller does not independently filter updates to the current attendee or verify an ownership UUID supplied in the body. Effective grants and row isolation must protect the intended response population. Do not expose a response ID as a self-edit token or treat a caller-generated UUID as login.
Answer editing limitation
The current generic updater does not persist answer-value edits. The request validates fields, but the response model's assignable attributes omit fields, and the inherited relation update only fills/saves that model. It does not write the separate response-value records that the create path writes. A successful status or returned old answers is therefore not confirmation that submitted answers changed. This is separate from registration self-update, native quiz answer/scoring APIs and form-design editing.
Use this endpoint only for an intentional supported status/metadata maintenance workflow after verifying its behavior in your deployment. Ask the platform owner for a supported answer-correction path when needed; this guide does not establish one by switching PUT/PATCH or copying the whole response. Do not delete/resubmit automatically to work around it, since creating a response has distinct validation and event/workflow consequences.
Dynamic validation and metadata replacement
Status is selected as a string without an enforced lifecycle enum. Metadata is selected as an array/object, and fields participates in dynamic validation even though the updater does not save its answers. Every currently required form field is required on update too; a status-only body can fail. Numeric text, boolean, configured option, file and custom validation rules also apply. The static reference cannot certify all forms' schemas, visibility logic or configured rules. Use the current definition and real existing answers for validation rather than inventing values to pass a maintenance request.
For a synthetic form with required numeric rating and integer metadata rule count, this example validates, but rating is validation input only and is not saved by this updater:
{
"status": "submitted",
"fields": {"rating": 2},
"metadata": {"count": 7}
}
Submitted is only the stored status in this example; setting it does not call the create method, rescore a quiz or prove a new survey submission was broadcast. The reviewed update path does not explicitly dispatch the create path's SurveyResponseSubmitted event or invoke an answer/scoring service. Other application listeners and consuming workflows still need separate verification.
Preparation maps known top-level field slugs into fields; a supplied top-level value overrides the same nested field. Creation-only UUID, project/form, IP/user-agent and attribution defaults are not newly assigned by this update preparation. UUID, attendee/subject identity, project/form ownership and arbitrary attribution are not selected update keys. Anonymous survey settings do not establish retroactive anonymization of an existing response through these selected fields.
When version configuration supplies metadata_validation, preparation rebuilds metadata from only its declared supplied keys and normalizes supported values. Boolean strings use boolean parsing; numeric metadata is converted; array strings can decode to arrays. Unknown keys disappear. Omitting metadata can produce an empty metadata array, so even a status/field-validation update can clear earlier metadata. Without that configured map, supplied metadata still replaces the whole attribute rather than merging. Preserve intended allowed context deliberately and verify the saved result; metadata is not an immutable audit trail.
Readback, privacy and recovery
The response resource flattens stored answer values into the returned data object rather than echoing request.fields. Its value accessor handles short values and supported boolean/numeric/multiple-choice casts; file fields return signed URL variants. Retain response ID and form context from the requested path. Answer slugs are spread after base identity/status fields and can replace overlapping keys in serialization, so avoid names such as id/status/project_id for answer fields and do not assume every returned key is an authoritative row attribute. Metadata, timestamps and completion are assigned after that spread. Validate the actual projection against the form definition.
This resource includes attendee/response identity, IP address, user agent, metadata, timestamps and optional survey completion settings. It is not a minimal public receipt or automatically anonymous-safe output. Optional include=form is accepted, but the explicit serializer derives its own fields instead of promising an arbitrary included form object. Do not expose raw responses or diagnostic payloads to public clients, logs, analytics or feedback. This limitation is one reason the documentation feedback widget remains hidden until its separate privacy gate is accepted.
After an uncertain result, inspect the same response in authorized reporting/dashboard views and compare status, metadata and existing answers before retrying. Outer Orion transactions are disabled; later refetch/serialization failure does not prove a save rolled back. This updater adds no version precondition, idempotent receipt or concurrency reconciliation. Test actual page/admin authorization, foreign form/response IDs, current-attendee isolation, required/typed fields, metadata omission, unchanged answers, flattened/private output and downstream recovery in an authorized environment. No live response, survey, quiz or feedback operation was performed for these examples.
Quiz and survey behavior
For quizzes, configure the question/scoring and attempt rules using the quiz settings exposed for the form. Verify a correct and incorrect answer, attempt start/finish, permitted retries and the displayed state/result. Quiz question-specific settings are associated with question fields rather than a separate invented question table contract. Distinguish saving a generic form response from starting/scoring a native quiz attempt. Inspect attempt state and any pending scoring result before treating the displayed score as final. See Quizzing for module behavior.
For surveys/polls, check survey mode, response/participation behavior and result visibility. Verify whether a guest or signed-in attendee can submit and who can read metrics. A browser's optimistic result should be reconciled with server state. See Surveys and Polls. For attendee creation and self-update settings, use Registration together with Attendee Management.
Import export and reuse
The dashboard design export is GET /p/{team}/{project}/forms/{form}/export. It accepts layout-engine v2 forms; legacy v1 forms receive 422. The bundle has numeric version: 1 and a form object containing name, root, cards, elements, form_theme, style_overrides and an asset ID-to-name manifest. The supported v2 design export contains layout/theme design information. It is not a backup of all attendee responses. When importing into another project, inspect warnings for asset references that cannot resolve there, then rebind assets and project resources. The asset manifest identifies references; it does not embed file contents, provision credentials or transfer audience permissions.
To import a design through the current dashboard, open Forms → Create, choose Registration, then Duplicate Existing Form → Import JSON. Upload the version-1 bundle, confirm the parsed design, choose the destination attendee type/audience and finish creation. The wizard creates a new registration form through POST /p/{team}/{project}/forms; it does not replace the source or selected existing form. The source export must be a v2 design, and the destination needs form-create permissions. This copies design/theme information, not response history or a quiz’s attempt/scoring configuration. An existing form’s edit lock still governs attempts to change that existing form; importing a new copy is a separate operation. Review the newly created form’s registration settings, saved slug and reference warnings before use.
Use the form's supported data/export controls for operational response exports. Check the exact API endpoint and payload in REST API when automating; registration, user-scoped responses and quiz operations have different contracts.
Acceptance and troubleshooting
Verify valid and invalid submissions, open/close windows, required/conditional fields, assets, mobile/keyboard layout and expected resulting attendee/response/attempt data. Test a guest, allowed attendee, excluded attendee and cross-project resource.
If a new URL fails, confirm the suffixed saved slug and project. If a v2 save fails, inspect the graph vocabulary rather than replacing it with legacy sections. If styling disappears, check whether a sparse theme save replaced other override keys. If a quiz/survey API returns 404, check the referencing page, its active state and the gate verdict before changing form data. A blocked submission calls for checking form type, active/window state, field validation, principal and scope. Missing design assets call for checking import warnings and project asset bindings. An unexpected response/result calls for inspecting the actual saved server state. Use Project Troubleshooting.