Skip to main content

Site Filtering for Forms and SubmissionsProNew in 5.2+

Optionally enable Site filtering for forms and submissions to show/hide them for specific Sites.

Overview

This feature allows you to filter form lists by Sites and prevents other admins from accessing forms that belong to Sites they don't have access to. By default, any new forms created will be visible for the Site they were created on (with the ability to enable additional sites).

This can help clean up the Freeform control panel when you have many forms specific to certain Sites.

This only controls access to forms and submissions. It does not enable translations per site.

Setting

Inside the General Settings page, you can enable this feature by toggling ON the Site Filtering for Forms and Submissions setting (or sitesEnabled: true in Project Config).

Form Builder

Once enabled, an additional Sites setting will appear for forms inside the Settings tab of the form builder.

Site Switcher

The Site switcher will be present in several areas of the Freeform control panel.

Forms

Forms can be filtered by Site(s) they are assigned to. If a user only has access to one or some of the Sites, the Site switcher will automatically limit what is visible to them.

Submissions

The Submissions index will filter its form source filters by forms that are available for the active Site, and the All Submissions source filter will only display submissions for forms that are available for the active Site.

Export Profiles

Export profiles will become filtered by forms that are assigned to the active Site.

Templates

It's important to note that if a form is only enabled for Site A and Site B, it will show when viewing Site C in the front end.

Retroactively Apply to Existing Installs

If you wish to enable this feature retroactively to an existing Craft install, please follow the steps below:

  1. Enable the Site Filtering for Forms and Submissions setting in Freeform.
  2. Open up each form and update the Sites setting inside the Settings tab and save the form.
    • Repeat for every form on your site.
    • By default, every form will have NO Sites checked off, but Freeform assumes the form should be active for ALL Sites if that is the case.
  3. Run the following CLI command (otherwise only your primary site will be able to see submissions in the control panel):
    php craft freeform/submissions/resave

What It Doesn't Do

While this feature relies on the Craft Sites feature to work, the primary intention at this point is to allow filtering of forms and submissions per Site.

Here are some things it cannot do (yet?):

  • CP-based translations of Freeform forms. The only option for translating forms per site remains via Static Text Translations.
  • Translations of Freeform submissions per site.
  • Unique settings per site.
  • Unique integrations per site.