Installing & Updating
Requirements
Freeform 5.x support both Craft 5.x and Craft 4.x. It meets mostly the same requirements as listed on the Craft Requirements page.
Installation
Freeform can be installed one of two ways:
- Composer (CLI)
- Control Panel
Freeform can be installed by running the following set of commands in your favorite CLI app: Recommended
Open your Craft project
cd /path/to/project
Get Freeform
- Latest Version
- Specific Version
composer require solspace/craft-freeform -w
composer require solspace/craft-freeform:5.9.15 -w
Install Freeform
- CLI
- Control Panel
./craft plugin/install freeform
To install Freeform via the Craft control panel instead:
- Go to Settings → Plugins.
- Click the Cog button for Freeform
- Select Install.
Choose Edition
Craft will automatically install the Express edition of Freeform. If you'd like the Lite or Pro edition, you can switch the edition one of two ways:
- Project Config
- Control Panel
- Open up your Project Config file (
/config/project/project.yaml
). - Search for
freeform
. - Where it says
edition: express
, switch that toedition: pro
.freeform:
- edition: express
+ edition: pro
enabled: true - Approve the update inside the CP.
- Go to the Settings → Plugins page in the Craft control panel.
- Click on the EXPRESS / trial button beside Freeform's name.
- On the Plugin Store page it takes you to, scroll down to the bottom and click on the Try button for the Pro edition (see video below).
Purchase
If Freeform is right for your site, purchase a copy of it through the Plugin Store when you're ready!
Freeform can be installed via the control panel by following these instructions:
Get Freeform
Go to the Plugin Store area inside your Craft control panel and click on Freeform.
Choose Edition
Once the product page opens, choose whether you want to install it by clicking the Try button under the Lite or Pro edition.
Purchase
If Freeform is right for your site, purchase a copy of it through the Plugin Store when you're ready!
Updating
If you're upgrading from Freeform 4.x, please see the special upgrade guide here.
Back up your database before continuing...
If the upgrade migration fails at any point, you must be prepared to fully restore your database using the backup you created before initiating the update again. A failed migration may leave the database partially changed or other migrations may have occurred. Downgrading to an earlier version could corrupt the database and make it unrecoverable.
It is essential that you take a complete backup of your database before proceeding with this update!
Freeform can be updated one of three ways:
- Craft Update (CLI)
- Composer (CLI)
- Control Panel
You can use the Craft update command to update Freeform. Recommended
Open your Craft project
cd /path/to/project
Check for Updates
./craft update
Perform the Updates
- Latest Version
- Specific Version
./craft update freeform
./craft update freeform:5.9.15
You can also update Freeform more manually if you like, using Composer (composer update
). This may also be helpful in certain scenarios where you need to workaround an issue while updating.
Update composer.json
- Latest Versions
- Locked Versions
Specifying the caret (^
) before the version number will always grab the latest available version:
"require": {
"craftcms/cms": "^5.0.0",
"vlucas/phpdotenv": "^5.4.0",
"solspace/craft-freeform": "^5.0.0",
"solspace/craft-calendar": "^5.0.0"
},
If you are locking your versions, you will need to open your Craft site's main composer.json
file and adjust the version number for Freeform (see guide below).
"require": {
"craftcms/cms": "5.6.1",
"vlucas/phpdotenv": "5.4.0",
- "solspace/craft-freeform": "5.7.2",
+ "solspace/craft-freeform": "5.9.15",
"solspace/craft-calendar": "5.0.14"
},
Open your Craft project
cd /path/to/project
Get Updates
composer update
Run Migrations
- Craft and All Plugins
- Freeform only
- Control Panel
./craft migrate/all
./craft migrate --plugin=freeform
Proceed to the Craft control panel and click the Finish Updates button if it shows.
We strongly advise against using the Control Panel for updates and migrations.
We strongly advise against using the Control Panel for updates and migrations.
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.
Disable Freeform
Freeform can be temporarily disabled from the CLI or control panel. The benefit of this is to troubleshoot potential issues and conflicts while preserving your data until a proper fix or change to the site is made.
Open your Craft Project
cd /path/to/project
Disable Freeform
- CLI
- Control Panel
./craft plugin/disable freeform
To disable Freeform via the Craft control panel instead:
- Go to Settings → Plugins.
- Click the Cog button for Freeform
- Select Disable.
Uninstall Freeform
Follow the steps below to uninstall Freeform from your site.
This action cannot be undone. All of your Freeform data be will lost forever, unless you have made a backup.
Open your Craft Project
cd /path/to/project
Uninstall Freeform
- CLI
- Control Panel
./craft plugin/uninstall freeform
To uninstall Freeform via the Craft control panel instead:
- Go to Settings → Plugins.
- Click the Cog button for Freeform
- Select Uninstall.
Remove Dependencies
Do not remove a plugin package with Composer before uninstalling it from the control panel or with Craft's CLI.
composer remove solspace/craft-freeform
Understanding versions and composer update
- For example, under the
"require"
area, change"solspace/craft-freeform": "5.0.2",
to"solspace/craft-freeform": "5.1.3",
. - You can also use
~
and^
to somewhat automate your updating process.1.0.0
- means exactly & only this version~1.0.0
- means this version & any patch release (up to1.0.99̅
)^1.0.0
- means this version & any minor release (up to1.99̅.99̅
)- Specifying
"solspace/craft-freeform": "^5.0.0",
for example, would always get you the latest version of Freeform 5.x (e.g.5.1.9
), but never the next major version of Freeform like 6.x.
- Specifying
Your final composer.json
file might have something like this:
"require": {
"craftcms/cms": "^5.0.0",
"vlucas/phpdotenv": "^5.4.0",
"solspace/craft-freeform": "^5.0.0",
"solspace/craft-calendar": "^5.0.0",
},
Purchasing
- Trialing
- Purchasing
- Renewals
Craft allows you to trial third-party plugins to see if they're right for your needs. We recommend trying any commercial plugin first before buying it. You can trial any plugin or Craft CMS itself by running your site from any domain that Craft does not consider to be a public domain.
If this is your first time purchasing a third-party plugin, here's an overview of the purchasing process of plugins. You may purchase licenses for plugins either via the Craft Plugin Store website or directly through the Craft Control Panel. For the latter, here is the process:
- Go to the Plugins section of your Craft control panel (Craft CP → Settings → Plugins).
- For the plugin(s) that need to be purchased, click the Buy Now button to add them to your cart.
- Proceed to purchase the plugin directly inside your Craft control panel. If you think you'll need updates and product support beyond the first year, you can optionally pre-purchase renewal years. You can also purchase renewals later after expiry.
- Once purchased, the current trial license key for the Freeform will become valid. These product keys can also be accessed and managed later on in your Craft Console account by visiting the Plugins area.
If you encounter any issues with licensing your plugin, please refer to the Troubleshooting guide below.
Renewals are not required to continue using Freeform past the one-year term, but they are required if you wish to update to newer versions of Freeform and receive official support from Solspace. Renewals can be set to automatic, or you may also purchase a renewal directly through the Craft Control Panel or via the Craft Console website.
Changing Editions
If you wish to change the edition of Freeform from Lite to Pro (or Pro to Lite while trialing), simply visit the Plugin Store area in the Craft control panel and click on the Try button for the edition you wish to change to. If you've already purchased a copy of Freeform Lite but wish to upgrade to the Pro edition, you can do so for the price difference only ($50).
- Switch During Trial
- Switch After Purchase
If you'd like to switch during the trial from Express or Lite to the Pro edition, you can switch the edition 1 of 2 ways:
- From Project Config: Open up your Project Config file (
/config/project/project.yaml
) and search forfreeform
. Where it saysedition: express
(orlite
), switch that toedition: pro
and then approve the update inside the CP. - From CP: Click on the EXPRESS / trial (or LITE) button beside Freeform's name and when it takes you to the Plugin Store page and click on the Try button for the Pro edition.
If using Craft's allowAdminChanges config setting, be sure to temporarily set it to true
in order to make changes to the edition (which can be switched back to false
afterward).
If, sometime after purchasing Freeform Lite (or using Freeform Express), you decide that you need more features that are available in the Lite or Pro edition, you can switch at any time for the price difference (e.g. from Lite to Pro would be $50) rather than needing to purchase the Pro edition at full price. We suggest you start by switching to a trial of the Pro edition and then purchase it if it meets your needs. You can switch the edition 1 of 2 ways:
- From Project Config: Open up your Project Config file (
/config/project/project.yaml
) and search forfreeform
. Where it saysedition: express
(orlite
), switch that toedition: pro
and then approve the update inside the CP. - From CP: Click on the EXPRESS / trial (or LITE) button beside Freeform's name and when it takes you to the Plugin Store page and click on the Try button for the Pro edition.
If using Craft's allowAdminChanges config setting, be sure to temporarily set it to true
in order to make changes to the edition (which can be switched back to false
afterward).
Once you're ready to complete the purchase, you can visit the Cart inside your site's control panel:
Troubleshooting
Third-party plugin licenses are managed and validated entirely by Craft. Some issues may require that you contact the Craft Team directly if issues persist. The following troubleshooting tips account for the most common issues we've seen our customers report to us: