Embedding forms
Every form gets an auto-generated page, but forms can also be embedded in any page or post.
Auto-generated pages
Saving a form creates (or updates) a WordPress page for it, nested under /forms/ by default. The page uses LocalForm's fullscreen template unless the form's Use site theme styling setting is on, in which case the active theme's page template is used.
The default parent slug can be changed with the localform_forms_base_slug filter (return '' for site-root pages).
Gutenberg block
In the block editor, add the LocalForm block and pick a form from the dropdown. The block renders a placeholder in the editor and the real form on the published page.
Shortcode
[localform id="123"]
[localform slug="my-event"]
Use the form's ID (visible in the edit screen URL) or its slug.
Behavior notes
- Embedded forms render exactly like the auto-generated page: same fields, styling, AJAX submission, and registration-limit checks.
- Draft forms are hidden from visitors; administrators see them with a draft notice, so embeds can be previewed before publishing.
- Styles and scripts are only loaded on pages that actually contain a form.
Prefilling from a share link
LocalForm Pro adds Prefill from URL on a per-question basis, plus a Copy prefill link button in the builder to generate the query string for you - see Prefill from URL.