Hi-
Curious whether anyone has found a way to apply this filter to a specific form. I checked with Support and this filter isn’t set up to accept form_ids like some of the other filters.
The $form argument is not available to that filter.
As suggested, the gform_purge_expired_incomplete_submissions_query filter can be used to change the ‘from’ date based on the form ID, and you can limit the where by including a form ID. You would need to handle all the logic in your function.
Pushing the word ‘adjustment’ to a little further than its common definition , Gravity Flow was developed with the core concept that each form has a unique set of requirements during both the submission and post submission process. A no-code approach you might want to look at to have granular control over expiration and per-form processing could include:
Configuring a User Input step for the entry creator to continue their submission process. Your initial form submission could be as small as name/email or generated via some other form of automation.
The confirmation could use the workflow_entry_url as part of its’ redirect for the user to move into the workflow seamlessly.
If you want to delete entries for certain forms in certain scenarios, the delete an entry step type of the Form Connector extension can handle it without customizing the query code.