Prevent a Field From Saving in the Database

Heads up! This article contains PHP code and is intended for developers. We offer this code as a courtesy but don't provide support for code customizations or 3rd party development.

Convert Forms does not support preventing a specific field from saving in the database. However, you can remove the field value from the database after the submission.

Setup

To remove a field value from the database, place the following code into the PHP Scripts -> After Form Submission option in the form builder.

\ConvertForms\Api::updateSubmissionField($submission->id, 'FIELD_NAME_HERE');

Replace FIELD_NAME_HERE with the name of the field you would like to remove from the database

Last updated on Nov 26th 2024 12:11