Skip to content

Forms: Enable Central Forms Management by default for all sites#47826

Open
vianasw wants to merge 3 commits intotrunkfrom
update/forms-cfm-enable-default
Open

Forms: Enable Central Forms Management by default for all sites#47826
vianasw wants to merge 3 commits intotrunkfrom
update/forms-cfm-enable-default

Conversation

@vianasw
Copy link
Copy Markdown
Contributor

@vianasw vianasw commented Mar 27, 2026

Proposed changes

  • Enable Central Forms Management (wp-build dashboard and synced forms) by default for all sites, including self-hosted Jetpack installations.
  • Flip the jetpack_forms_alpha filter default from false to true in class-dashboard.php (4 call sites) and class-contact-form-plugin.php (1 call site).
  • Add the central-form-management editor feature flag from within the Forms package via a new enable_central_form_management_flag filter callback at default priority (10), so it works out of the box without external configuration.
  • Update jetpack-mu-wpcom flags to explicitly disable CFM for excluded WordPress.com sites (e2e test sites, disable-central-forms-management sticker) instead of enabling for included ones.
  • Update legacy dashboard tests to explicitly opt out of wp-build mode, since the default is now enabled.

Other information

  • Generate changelog entries for this PR (using AI).

Related product discussion/links

Does this pull request change what data or activity we track or use?

No.

Testing instructions

Self-hosted / Jetpack site (the new behavior)

  1. On a self-hosted WordPress site with the Jetpack plugin active, go to Jetpack → Forms.
  2. Before this PR: The legacy React dashboard loads (page slug jetpack-forms-admin).
  3. After this PR: The new wp-build dashboard loads (page slug jetpack-forms-responses-wp-admin) with forms management, responses, and all CFM features.
  4. Verify the block editor also has CFM features: insert a Contact Form block and confirm it creates a synced form on insertion.

Opt-out via filter

  1. Add add_filter( 'jetpack_forms_alpha', '__return_false' ); to a plugin or theme.
  2. Verify Jetpack → Forms falls back to the legacy dashboard.
  3. Remove the filter and confirm the wp-build dashboard returns.

WordPress.com (no regression)

  1. On a regular WordPress.com site, verify Jetpack → Forms still loads the wp-build dashboard.
  2. On a site with the disable-central-forms-management sticker, verify the legacy dashboard loads instead.

Flip the jetpack_forms_alpha filter default from false to true and
add the central-form-management editor feature flag from within the
Forms package. This makes CFM available to all sites including
self-hosted Jetpack installations, without requiring a feature flag.

The wpcom flags file is updated to explicitly disable CFM for
excluded sites (e2e test, disable sticker) rather than enabling
for included ones, preserving the opt-out mechanism.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vianasw vianasw added the [Status] Needs Review This PR is ready for review. label Mar 27, 2026
@vianasw vianasw self-assigned this Mar 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack or WordPress.com Site Helper), and enable the update/forms-cfm-enable-default branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack update/forms-cfm-enable-default
bin/jetpack-downloader test jetpack-mu-wpcom-plugin update/forms-cfm-enable-default

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • 🔴 Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: March 31, 2026
    • Code freeze: March 31, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@vianasw vianasw requested a review from a team March 27, 2026 20:40
@jp-launch-control
Copy link
Copy Markdown

jp-launch-control bot commented Mar 27, 2026

Code Coverage Summary

Coverage changed in 2 files.

File Coverage Δ% Δ Uncovered
projects/packages/forms/src/contact-form/class-contact-form-plugin.php 608/1522 (39.95%) 0.36% -3 💚
projects/packages/forms/src/contact-form/class-feedback-email-renderer.php 303/329 (92.10%) 1.82% -6 💚

Full summary · PHP report · JS report

…eation

With CFM enabled by default, clicking the variation picker creates a
synced form whose title comes from the variation (not the block's
formTitle attribute). The test then fails looking for a form with the
original title.

Provide explicit innerBlocks when inserting the form block, matching
the pattern already used by the second test. This keeps the form
inline and preserves the formTitle attribute.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ E2E Tests [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. and removed [Status] Needs Review This PR is ready for review. labels Mar 27, 2026
@vianasw vianasw removed the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Mar 27, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

E2E Tests [Feature] Contact Form [mu wpcom Feature] Wpcom Contact Form Flags [Package] Forms [Package] Jetpack mu wpcom WordPress.com Features [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant