Skip to content

[6.x] Support alternate submissions on Inertia forms - #19779

Merged
riasvdv merged 2 commits into
6.xfrom
extract/19665-alternate-form-actions
Oct 1, 2026
Merged

riasvdv merged 2 commits into
6.xfrom
extract/19665-alternate-form-actions

Conversation

@riasvdv

@riasvdv riasvdv commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Description

Enable CpScreenResponse::addAltAction() on Inertia Form pages and slideouts through the existing save pipeline. Alternate submissions preserve current form values, encrypted redirects, confirmation, shortcuts, scroll behavior, and destructive styling. Structured HTTP actions and page-defined callbacks retain their existing behavior.

Combine response and page actions under formActions, preserve the primary Save button, and avoid duplicate continue-editing entries. Slideout saves remain non-navigating, with continue-editing actions keeping the panel open. Form submissions ignore eventData extensions.

Extracted from #19665. Original implementation by Nathaniel Hammond.

riasvdv and others added 2 commits October 1, 2026 11:49
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 3991f49 into 6.x Oct 1, 2026
23 checks passed
@riasvdv
riasvdv deleted the extract/19665-alternate-form-actions branch October 1, 2026 10:02
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