Ad

Sysext:form How To Include StaticText In Email Finisher?

- 1 answer

I would like to include the content of the StaticText elements in the confirmation email, because it is legally relevant and should be printed.

How to get this to work?

Ad

Answer

The Element can be re-enabled via Yaml-Configuration:

TYPO3:
  CMS:
    Form:
      prototypes:
        standard:
          formElementsDefinition:
            StaticText:
              variants: null

This already outputs the header. To output the text, we need {formValue.element.properties.text} in the Fluid-Template (Plaintext.html or Html.html).

The Fluid-Template also needs to be enabled via Yaml:

TYPO3:
  CMS:
    Form:
      prototypes:
        standard:
          finishersDefinition:
            EmailToReceiver:
              options:
                templateRootPaths:
                  20: 'EXT:user_site/Resources/Private/Templates/Extensions/form/Templates/Finishers/Email/'
Ad
source: stackoverflow.com
Ad