MetForm Integration
MetForm is an Elementor-based WordPress form builder that renders forms as part of the Elementor page builder. Because MetForm forms are built and rendered entirely through Elementor’s JavaScript layer, WP Smart Consent uses a JavaScript-based approach to inject the checkbox rather than a standard PHP hook.
How It Works#
In Contact mode, WP Smart Consent uses a MutationObserver to detect when a MetForm form finishes rendering in the DOM and injects the checkbox into the form container. A fetch interceptor then appends the wpsc_optin consent value to the form’s REST API submission when it fires. In Newsletter mode, no checkbox is shown and every submission is forwarded automatically.
Configuring Per Form#
MetForm settings are configured individually for each form via the WP Smart Consent row action on the MetForm forms list screen. To access it, go to MetForm → Forms in your WordPress admin, find the form you want to configure, and look for the WP Smart Consent option in the row actions beneath the form name. From there you can set the mode and control how submissions from that form are handled.
This means different forms on the same site can behave differently — a general contact form can run in Contact mode while a dedicated newsletter signup runs in Newsletter mode.
Enabling the Integration#
In the WP Smart Consent dashboard, go to Integrations and toggle MetForm on. This activates the integration globally — per-form behavior is then controlled from the MetForm forms list as described above.
Works Alongside Other Integrations#
Enabling the MetForm integration doesn’t affect any of your other active integrations. Each source is independent — opt-ins captured through MetForm are forwarded to the same CRM and ESP destinations as any other source, and are logged with metform as the source for easy filtering.