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.
Hello,
I'm also interrested to get rid of prefix and suffix in the webform mail.
I use version webform 6.x-3.18 and I don't find "theme_webform_mail_textfield" anymore as explained in #5 for the support request "Remove Label After Textfield" (webform 6.x-2.29)
I only find function theme_webform_display_textfield($element)
But I want to keep prefix and suffix in the display.
Could you help me?
Thanks.
Comments
Comment #1
quicksketchAssuming your sending plain-text e-mails, you can check the $format variable and only print out the field prefix and suffix if $format === 'html'.
This general question is out of scope for the Webform issue queue so I'm closing it directly. As mentioned in the submission guidelines, I don't provide help with custom coding:
Please refer to other resources such as IRC or Drupal StackExchange to ask your questions.