Skip to main content

Module block

Module block 

Source
Expand description

The form StreamField block.

A dedicated block editors drop into any page StreamField — including nested streams, since it’s a registered block listed in allowed sets. It references a built form (by id from the chooser, or by the slug older pages typed in) and optionally overrides the success redirect / message for that placement.

The reference is resolved async in the stream pre-pass (crate::block::tera_helpers::enrich_chooser_refs_async, which injects _schema / _form_id / _embed onto the block value); this block’s sync Block::render then turns the schema into HTML via crate::forms::render.

Structs§

FormBlock
form — embeds a built form on a page.