Installing & Updating
More setup topics
Requirements
- Freeform 5.19.1 and later in the 5.19 series require Craft 5.12 or later in the Craft 5 series. Freeform 5.19.0 requires Craft 5.12.x.
- Freeform 5.18.x works with Craft 5.9 or later.
- Craft 4 is supported up to and including Freeform 5.18.x, which requires Craft 4.17 or later.
| Freeform | 5.0 | 5.1 | 5.2 | 5.3 | 5.4 | 5.5 | 5.6 | 5.7 | 5.8 | 5.9 | 5.10 | 5.11 | 5.12 | 5.13 | 5.14 | 5.15 | 5.16 | 5.17 | 5.18 | 5.19 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Craft 5PHP 8.2+ | — | 5.0+ | 5.9+ | 5.12+ | ||||||||||||||||
| Craft 4PHP 8.0.2+ | 4.0+ | 4.17+Ends at 5.18.x | — | |||||||||||||||||
Craft 4 has reached end of life. Composer security advisories may block installs or updates.
Freeform needs at least 256 MB of PHP memory and the BCMath and GD extensions. Check the database and browser requirements for Craft 5 or Craft 4.
Installation
- Composer Recommended
- Control Panel
Use Composer to add Freeform to your Craft project.
Open your Craft project
cd /path/to/project
Get Freeform
composer require solspace/craft-freeform -w
Get a specific version
Add the version to the package name. Check compatibility before choosing a release.
composer require solspace/craft-freeform:5.18.8 -w
Install Freeform
On Craft 5.7+ or 4.15+, pass the edition you want to install (pro, lite, or express).
./craft plugin/install freeform pro
Install on older Craft versions or from Settings
On earlier Craft versions, run the command without an edition to install Express. You can change editions afterward.
./craft plugin/install freeform
To finish installing in the control panel after adding the package, go to Settings → Plugins, open the gear menu next to Freeform, and select Install.
Get Freeform
In the Craft control panel, open Plugin Store → Forms and select Freeform. You can also search for Freeform by name.
Choose Edition
On the Freeform listing, open Editions. Choose Install for Express or Try for Lite or Pro.
You can buy a Lite or Pro license when you’re ready to launch.
Updating
Upgrade notes
- Craft 4: Stay on Freeform 5.18.x until you upgrade to Craft 5.12 or a later Craft 5 release. If advisories block the update, see Composer troubleshooting.
- Freeform 4: Follow the Freeform 4 upgrade guide.
- Freeform 5.19.1 Pro adds submission replies. Existing sites can enable replies after updating.
- Custom templates: If you’re updating from before Freeform 5.17, review the AJAX banner and field error styling changes. Existing JavaScript overrides still work. Updating custom templates to 5.17
- Craft Update Recommended
- Composer
- Control Panel
Use Craft’s update command to update Freeform.
Back up your database
Take a full backup before updating. If a migration fails, restore the backup before retrying. Downgrading after a failed migration can corrupt the database.
Open your Craft project
cd /path/to/project
Check for Updates
./craft update
Update Freeform
./craft update freeform
Update to a specific version
Add the compatible version you want to install after the plugin handle.
./craft update freeform:5.18.8
Composer updates the package files. Run Craft’s migrations afterward to update the database.
Back up your database
Take a full backup before updating. If a migration fails, restore the backup before retrying. Downgrading after a failed migration can corrupt the database.
Open your Craft project
cd /path/to/project
Update the Freeform package
If the target release falls outside your current version constraint, edit the solspace/craft-freeform entry in composer.json first.
composer update solspace/craft-freeform --with-dependencies
Run Migrations
Apply pending migrations for Craft and all plugins.
./craft migrate/all
Other migration options
To run only Freeform’s migrations, use:
./craft migrate --plugin=freeform
The command line is recommended. If you’re using the control panel, select Finish Updates when prompted.
We strongly advise against using the Control Panel for updates and migrations.
Back up your database
Take a full backup before updating. If a migration fails, restore the backup before retrying. Downgrading after a failed migration can corrupt the database.
Check for Updates
Go to the Craft Updates area inside the control panel (Utilities → Updates) and review the changelog for Freeform.
Run Updates
Simply click the Update button and Craft will do the rest.
Composer version constraints
The solspace/craft-freeform constraint in composer.json controls which Freeform releases Composer can install.
5.18.8pins Freeform to that exact release.~5.18.0allows patches in the 5.18 series.^5.18.0allows Freeform 5 releases from 5.18.0 onward.
Composer also checks your Craft, PHP, and dependency versions. Composer’s version constraint guide
Test an unreleased version
Set the Freeform constraint in composer.json to the branch you want to test.
v5.x-devfor thev5branch.dev-feat/SFT-123 as 5.3.5-beta.1for a feature branch aliased to a version that fits your project.
Fetch the branch with Composer.
composer update solspace/craft-freeform --with-dependencies
Changing Editions
Already own Lite? Upgrade to Pro for the $50 price difference.
If allowAdminChanges is set to false, switch editions in your development environment and deploy the updated Project Config.
- Command Line Recommended
- Project Config
- Control Panel
Open your Craft project
cd /path/to/project
Choose Edition
On Craft 5.7+ or 4.15+, pass the edition you want to switch to (pro, lite, or express).
./craft plugin/install freeform pro
Open up your Project Config file (/config/project/project.yaml).
Search for freeform.
Switch the edition name to the one you'd like. For example, where it says edition: express, switch that to edition: pro.
freeform:
- edition: express
+ edition: pro
enabled: true
Approve the update inside the CP.
Open the Freeform listing
In Settings → Plugins, select the edition badge beside Freeform if it’s clickable. You can also open the Plugin Store, search for Freeform, and select its listing.
Choose an edition
Open the Editions tab. Choose Try to start a Lite or Pro trial, Install to switch to Express, or Reactivate to return to the Lite or Pro edition licensed for this site.
Disable Freeform
You can temporarily disable Freeform from the command line or control panel to troubleshoot issues without removing your data.
- Command Line Recommended
- Control Panel
Open your Craft Project
cd /path/to/project
Disable Freeform
./craft plugin/disable freeform
Go to Settings → Plugins.
Click the Cog button for Freeform
Select Disable.
Uninstall Freeform
Uninstalling permanently deletes your Freeform data. Back up your database first if you need to keep it.
- Command Line Recommended
- Control Panel
Open your Craft Project
cd /path/to/project
Uninstall Freeform
./craft plugin/uninstall freeform
Remove the package
Run this after uninstalling Freeform from Craft.
composer remove solspace/craft-freeform
Go to Settings → Plugins.
Click the Cog button for Freeform
Select Uninstall.
Purchasing
- Try Lite or Pro. On a development site, find Freeform in Craft’s Plugin Store and select Try for the edition you want.
- Buy a license. In Craft’s Plugin Store, open the cart and add Freeform from Active Trials. Checkout activates the license on your site. If you buy separately from the online Plugin Store, enter the license key under Settings → Plugins.
- Renew for updates and support. Your purchase includes one year of updates and support. Renew or enable auto-renew under Licenses → Plugins in Craft Console. You can keep using your licensed version if you let renewals lapse.
If a license isn’t working, see licensing issues.
Troubleshooting
Licensing issues
Craft manages Freeform license activation, validation, and renewals. For help resolving a licensing issue, see Craft’s plugin licensing guide.
Craft 4: Composer security advisories
Composer can block a Freeform install or update if a dependency required by Craft 4, such as Twig, has a security advisory.
For live sites, follow Craft’s upgrade guide and test on a local copy first. Craft 4 has reached end of life. Use only on an isolated local copy. These commands can install dependencies with known vulnerabilities. Run Composer 2.10+ To update an existing installation, run: To install Freeform on the local copy, run: Composer 2.9.2 through 2.9.x The environment variable uses Bash or Zsh syntax and applies only to that command. The Craft 4 workaround (local testing only)
composer --version in your project directory to choose the command for your version.-W flag allows Composer to update root dependencies too. After updating, run composer audit to review remaining advisories and follow the migration steps.