Skip to content

[6.x] Add reusable server form modals - #19768

Merged
riasvdv merged 2 commits into
6.xfrom
extract/19665-server-form-modals-retry
Oct 1, 2026
Merged

riasvdv merged 2 commits into
6.xfrom
extract/19665-server-form-modals-retry

Conversation

@riasvdv

@riasvdv riasvdv commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a reusable modal for server-built Form payloads. It loads from modalUrl with params, submits the renderer’s current values plus params to actionUrl, maps validation errors to controls, and displays success and error messages. Server titles and submit labels have caller-provided fallbacks, and submissions are guarded against duplicates and renderer failures.

The detached launcher installs the shared CP component registry for plugin controls and custom elements, then removes the app, host, and registry installation on close or submission. Element action menus can dispatch formModal behaviors and reload the page after submission.

Extracts the generic modal from #19665 without its admin-table consumers or other changes.

Related issues

riasvdv and others added 2 commits October 1, 2026 10:09
Co-authored-by: Nathaniel Hammond <nathaniel@pixelandtonic.com>
Co-authored-by: Nathaniel Hammond <nathaniel@pixelandtonic.com>
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/ui — open Storybook

No changed components detected in this Storybook.

resources/js — open Storybook

No changed components detected in this Storybook.

@riasvdv
riasvdv merged commit 0ddbe29 into 6.x Oct 1, 2026
23 checks passed
@riasvdv
riasvdv deleted the extract/19665-server-form-modals-retry branch October 1, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant