Problem

Currently, emails are only send when a submission is completed.

Solution

Form administrator should be able to control when emails should be sent. States includes 'always', 'draft', 'completed', 'updated'.

Notes

  • When saving of results is disabled email will always be sent.

Tasks

  • Update email handler configuration form
  • Update email handler submit handling.
  • Update email handler scheme
  • Hide new settings when results are disabled.
  • Write update hook
  • Create test form
  • Write test

New settings

Send email...

  • [] When draft is saved
  • [] When submission is completed
  • [] When submission is updated
  • [] When submission is deleted
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Issue summary: View changes

  • jrockowitz committed 95c2b08 on 2864327-email-states
    Issue #2864327: Send email based on different states.
    

  • jrockowitz committed e23dd2e on 2864327-email-states
    Issue #2864327: Send email based on different states. Update exported...

  • jrockowitz committed faf3003 on 2864327-email-states
    Issue #2864327: Send email based on different states. Write tests.
    
jrockowitz’s picture

Status: Active » Needs review
FileSize
35.14 KB

  • jrockowitz committed ca442bb on 8.x-5.x
    Issue #2864327 by jrockowitz: Send email based on different states
    
jrockowitz’s picture

Status: Needs review » Fixed
kclarkson’s picture

I have tested this as well. Everything is smooth sailing. I can send emails based on different submission states.

Great!

jrockowitz’s picture

Status: Fixed » Closed (fixed)

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