How to submit the Form when the Database is in Read-only mode

  • Updated


In somes case, the Database is Read-only mode.
For an example: When using ZDD we set the DB to ReadOnly. By default, when the Database is read-only mode, you will be unable to submit the form. An error 500 will be thrown when trying to submit the form. But you don’t want the forms to stop working. You want the form to still be submitable. You accept that the submission will not be saved to the DB, but the actors will still run (SendEmailAfterSubmission, Wehooks, Connectors,....)



You can customize the StoreSubmissionData method of the DataSubmissionService to return the GuideID if the DB is read-only mode.
Please check the attached for the example code.