I added the webform submission 'submitted' date to available output for reports.

Also added ability to send reports to an email address at specified interval. First time it runs, it sends the full report. Then on subsequent runs (at cron interval), it sends all information since last sent report. Allowed to set minimum interval so regardless of cron interval, user can receive emails once a day or hourly or whatever.

The submission date stuff is a bit of a hack. Couldn't figure out a better way to do it according to the webform schema.

Hope this helps someone.

Mark

CommentFileSizeAuthor
#1 webform_report.patch31.46 KBenobrev
webform_report.patch31.45 KBenobrev

Comments

enobrev’s picture

StatusFileSize
new31.46 KB

Oops. Had the cron function named incorrectly. Just renamed webform_cron to webform_report_cron. rest of the patch is exactly the same.

Mark

klance’s picture

You know, I like this idea of yours about e-mailing the report periodically, but I want to think about it for a bit longer. Don't worry about the submitted date, that's already done for the next version.

klance’s picture

Status: Needs review » Fixed

I decided not to include the e-mail reporting for now, since it's a bit specific to your needs and I'd like to work on the core functionality a bit more first. Thanks for the suggestion, though, and I've added not only the submitted date, but also the time, user (clickable) and IP address from webform's additional data fields.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

jprstoney’s picture

Version: 5.x-1.4 » 7.x-1.x-dev
Issue summary: View changes

I really like the idea of email reporting. Will the patch work for v7.x-1.0?