Wouldn't it be possible to enable or disable this function on a form by form basis? I have a couple webforms I would like cleared after submission/email and a couple others that are not even emailed, that I want to be stored in the DB.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

richsky’s picture

That make sense

Stephen Ollman’s picture

Issue summary: View changes

Second / Third this functional option. Would be great.

stefan.r’s picture

stefan.r’s picture

This version introduces a setting to either clear webforms:

- never
- immediately
- after 1 day
- after 1 week
- after 1 month

A default can be set globally that can be overridden on a per form basis by users with the right permission.

The default is "never" right now, however in 1.1 this was "immediately", so maybe an update hook would be in order, just to maintain compatibility with 1.1?

stefan.r’s picture

Status: Active » Needs review
FileSize
18.6 KB
2.6 KB

Upgrade hook added that changes the default value to "delete immediately" for people upgrading from
version 1.1 in order to maintain backwards compatibility.

caspervoogt’s picture

+1 for being able to set this on a form by form basis

stefan.r’s picture

Changed update hooks to reflect 2.0 versioning

  • Commit 4247c0d on 7.x-2.x authored by stefan.r, committed by Robert Castelo:
    Issue #2057119 by stefan.r | zanymonster: Selective Webform Clear.
    
stefan.r’s picture

Status: Needs review » Closed (fixed)

Implemented in 2.0