Freeform with project.yaml?

Craft CMS Asked on November 7, 2021

On my development instance, I added a freeform form. Now I would like to deploy that form to the staging, or later, live site.

When committing my changes, I noticed that nothing was added to project.yaml. So I guess the changes are just saved in the DB and will not be synced at git-based deploy.

Is that by design? Can I enable useProjectConfigFile somewhere?

If not: how do I export the form definitions and deploy them to another instance? By MySQL?

2 Answers

Project config is designed to sync the architecture of your site, not the content, so structural changes can be made without affecting the content. Forms are seen as content, like entries, so this would be the expected behaviour.

The suggested workflow would be to create the form on the production site, then pull to local environment to do any front-end work, then push those changes to production.

The nystudio107 craft scripts are pretty useful for syncing databases and assets if needed.

Answered by dmatthams on November 7, 2021

In my experience none of the Solspace plugins migrate their admin stuff the "Craft" way.

I would not recommend useProjectConfigFile if you are using Freeform or Calendar, as this will lead to confusion.

Answered by Steve Mock on November 7, 2021

Add your own answers!

Related Questions

htaccess www to non-www with subdomain

1  Asked on July 11, 2021 by plaintxt


Getting average of number field values

1  Asked on July 11, 2021


Checkout Without Payment

1  Asked on July 9, 2021 by taher


SQL Queries Performing Full Table Scan

0  Asked on July 4, 2021 by zhua89


LDAP connects but fails to return entries

0  Asked on June 28, 2021


Is there a “sticky post” function built into Craft?

2  Asked on June 28, 2021 by steve-adams


Craft 3 Hosting on Azure

0  Asked on June 27, 2021


Specify a specific entry type in paramaters

2  Asked on June 24, 2021 by weslawson


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir