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.
The core contact module allows an option where user can tick a checkbox to get a copy of the sent message. This would be a useful feature for webform too.
Comment | File | Size | Author |
---|---|---|---|
#3 | webform.webform.contact.yml | 4.35 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThis feature is very specific contact forms. I think there might be a way to implement it using conditional handlers. Improving webform's server-side conditional logic is not on the immediate roadmap.
Still, I would like to at least make it feasible to implement conditional handlers using custom code, similar to How to programmatically alter destination email address.
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedWe just recently tweaked how tokens were being handled via [#2861976} and I realized that this feature can be implemented using a token in the confirmation checkbox's #return_value. It is also worth noting emails are only sent if a To, CC, or BCC email address is set.
The attached form is a little hacky but does work.
I am going to close this ticket because this feature is really to specific. At some point this type of feature could also be addressed by conditional emails.