Problem/Motivation

Remove the section/fieldset titles from the mail content.

Steps to reproduce

We have an HTML structured webform. We use sections in order to organize the information in it and have a nice layout online.
Their titles are invisible on site.
However when receiving mail (both in HTML and clear text), the titles of the sections are visible.
I have tried different options for Submission display for the sections per single item, and there is no change.
Is there an option which I am missing?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joro78 created an issue. See original summary.

cilefen’s picture

Title: Hiding section titles when sending email. » Section titles are visible in emails
Category: Task » Bug report
joro78’s picture

Issue summary: View changes
FileSize
22.08 KB
garth_powell’s picture

I have the same issue. I would love to not have to customise the email to ensure fieldset titles are not visible in emails as that would create too much risk in maintaining forms

jrockowitz’s picture

Status: Active » Needs review
FileSize
1.13 MB
691 bytes

The most reasonable compromise is that when a fieldset's submission display is set to a container with no title, the email should also respect this setting. Please review the attached patch.

This behavior change might have to be made via 6.2.x

pvbergen’s picture

Status: Needs review » Reviewed & tested by the community

We had a similar issue in one of the projects in which we needed to hide section titles. We have a simple patch using the elements title_display setting, but this approach make more sense. I've reviewed the patch with 6.1.x, the patch does the trick nicely. Do we need additional test coverage here?

I also thought about introducing a whole configuration for mail display in WebformElement, analogous to submission display. This way, the settings for submission and mail display would be independent. It might be overkill, but if there is an interest I could open a second issue.

jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

  • 2e2b839 committed on 6.1.x
    Issue #3307580 by jrockowitz, joro78: Section titles are visible in...

  • 2e2b839 committed on 6.x
    Issue #3307580 by jrockowitz, joro78: Section titles are visible in...

  • 2e2b839 committed on 6.2.x
    Issue #3307580 by jrockowitz, joro78: Section titles are visible in...

Status: Fixed » Closed (fixed)

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