Limit submission by Calendar Week
bramick - October 6, 2009 - 18:44
| Project: | Webform |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
In the Webform advanced settings, I'd like to see submissions by calendar week and month. It currently only does a count from last submission. It would be nice to be able to limit submissions for example by once a week, so it would calculate if you posted in week 1 of this month. If not then you can post anytime during that first week.
Maybe this is an additional module.

#1
I'm moving this conversation to this thread as suggested at http://drupal.org/node/488128. First, attached is the separate patch to add a simple monthly option and, while I'm at it, a simple yearly option.
To continue the discussion on how to handle more complicated date patterns for submission limits, what occurs to me is that I have found the Additional Validation and Additional Processing fields to be enormously useful for doing custom stuff.
Would it not be wiser to provide the unlimited and simple schedule options as they are now (adding the monthly and yearly options from the patch) and possibly add a 3rd radio button for custom php validation that disables/skips the simple schedule functions and leaves it to the existing php Additional Validation for more complex limits?
That way, it would be infinitely more flexible to use and considerably simpler to implement than trying to add gui calendar functions to the admin interface.