Will swapping out IPermanentStorage on the DXP make Forms store data during ZDD readonly deployments?

Vote:
 

https://docs.developers.optimizely.com/content-management-system/v1.2.0-forms/docs/creating-new-data-storage-mechanism

If we can get something in place like our own CosmosDB resource with MongoDB interface and hook it up like in above docs, can we then deploy with read-only mode and still store form postings? Or could something like form file uploads cause issues?

Anyone have some experiences to share?

#313004
Nov 23, 2023 15:57
Vote:
 

If the database is read-only, it will not save the data you submit or the file you upload, even if you use MongoDB as your storage provider.
 
To store your form data and file in a read-only ZDD, you need to change the Forms logic on SubmissionStorageFactory and DataSubmissionService. You need to make them save your data and file in another place (MongoDB) and then sync them back after the deployment is done.

#313224
Nov 28, 2023 3:12
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.