What does it do?
Gravity Forms must create an entry in order to function properly. Rather than truly disabling entry creation, Gravity Forms Disable Entry Creation will automatically delete the entry and any associated files after the submission process has been completed.
Additionally, if the form has a User Registration feed, the entry will be deleted once the user has been activated, created or updated (depending on how your User Registration feed is configured).
Features
- Automatically delete entry after feeds have been processed.
Create Users without retaining data in form entries.
- Conditionally disable entry creation.
Use Gravity Forms conditional logic to conditionally disable entry creation.
- GDPR compliance.
Remove all personal data from entries after processing.
- Seamless, easy-to-use UI.
Integrates directly with Gravity Forms settings. Activate this feature with a single click.
- Automatic updates.
Get updates and latest features right in your dashboard.
- Awesome support.
We’re here to help! And we mean it.
Documentation
- How do I enable this functionality?
- Feature Details
- Conditionally Disable Entry Creation
- Known Limitations
- Translations
- FAQs
- Can I still access uploaded files after the entry is deleted?
- How does this differ from Gravity Forms Data Retention feature?
- Hooks
- Related Resources
- Credits
How do I enable this functionality?
To disable entry creation for any form, just activate this perk and head to the form settings for whichever form you’re working with. Scroll down to the Entry Creation section near the bottom and check Disable entry creation.
![Gravity Forms Disable Entry Creation - Auto Delete Entries | Gravity Wiz 1 Gravity Forms Disable Entry Creation - Auto Delete Entries | Gravity Wiz](https://gravitywiz.com/app/uploads/2014/08/gp-disable-entry-creation-setting-618x205.png)
Feature Details
Conditionally Disable Entry Creation
Entry creation can be disabled using conditional logic. After checking Disable entry creation in the form settings, a checkbox to enable conditional logic appears. Check this box and set up conditional logic like you would anywhere else in your form.
![Gravity Forms Disable Entry Creation - Auto Delete Entries | Gravity Wiz 2 Gravity Forms Disable Entry Creation - Auto Delete Entries | Gravity Wiz](https://gravitywiz.com/app/uploads/2014/08/gp-disable-entry-creation-conditional-618x323.png)
Known Limitations
- Disable Entry Creation cannot be used on child forms embedded via a Nested Forms field. However, Disable Entry Creation can be used on the parent form. In this configuration, child entries will be automatically removed alongside the parent entry after the parent form has been submitted.
Translations
You can use the free Loco Translate plugin to create translations for any of our Perks. If you’ve never used Loco translate before, here’s a tutorial written for beginners.
FAQs
Can I still access uploaded files after the entry is deleted?
Yes! By default, the entire entry and any associated files will be deleted. However, if you would like to delete the entry but keep the uploaded files, you can add this filter to your themes functions.php.
add_filter( 'gform_field_types_delete_files', function() { return array(); } );
Disable Entry Creation differs from the built-in Retention Policy feature in two ways:
- Disable Entry Creation can delete entries immediately. The shortest time the built-in option gives you is 1 day.
- Disable Entry Creation waits until feeds are processed before deleting entries. If the form has a User Registration feed and there are pending activations, it will wait until the activation is completed before deleting the entry. The built-in feature will delete the entry even if there is a pending activation, causing errors if the user tries to activate after the entry has been deleted.
Hooks
Gravity Forms has hundreds of hooks. Check out our
Gravity Forms Hook Reference for the most thorough guide to Gravity Forms’ many actions and filters.
Credits
Big shout-out to Richard Wawrzyniak for his major contributions to this plugin.