0

I created a custom webform email template named webform-mail-1.tpl.php that is used when a user submits a webform. The problem is, if someone modifies that submission and wants to resend that submission by email, the email uses the default template instead of the custom one ...

Does anybody have an idea as to why this happens ? I didn't read anything about needing a separate template for emails that are sent again ...

Thanks !

3
  • Make sure you are using the active theme while submitting webform first time and while editing webform. This seems similar drupal.org/node/1126242 Commented Nov 14, 2014 at 21:36
  • YES ! My admin theme was using a different theme than my default theme, that's why the template used was the default one ... that also explains some problems I had in the past trying to dpm some variables as an admin and not seing anything printed on the screen. Thank you very much !
    – agodin
    Commented Nov 14, 2014 at 21:57
  • keep the same webform template in your theme also. Enjoy! Love Drupal Commented Nov 14, 2014 at 22:46

1 Answer 1

0

Site was using two different themes and webform was submitted from the front end theme(first theme) and back end theme(second theme) The problem was that the webform template was present in the front end theme and not in the back end theme. So that's why when the user submitted the webform once the email uses the custom template.and when the user edit the webform under the back end theme the webform custom template is not present in this theme so the webform was using the default template. Fix : Keep the similar custom template in both themes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.