Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#6 | send_email_based_on-2864327-6.patch | 35.14 KB | jrockowitz |
|
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #9
kclarkson CreditAttribution: kclarkson commentedI have tested this as well. Everything is smooth sailing. I can send emails based on different submission states.
Great!
Comment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House for Kennesaw State University commented