Search code examples
typo3typo3-8.xtypo3-extensions

How can I insert html Code in Typo3 8.7 Form extension in a label or description Field


I want insert this code in a Label or Description Field of a Contact-Form Field:

test <a href="/index.php?id=4">Page</a>

But when I save the form, the HTML-Code was removed:

test Page

How can I deactivate the removing of HTML Code in Typo3 8.7 tx_form?

Thank you


Solution

  • In TYPO3 v8, EXT:form does not provide this out-of-the-box. You can use a custom form element to achieve this. Here is an example: https://github.com/tritum/form_element_linked_checkbox

    The upcoming TYPO3 v9 could contain a slim configuration for the CKEditor RTE to the form labels. It would allow to add links or style texts. The agency TRITUM worked on this as part of the TYPO3 User Experience Week 2018 (T3UXW18). It has yet to be added to the core, though.

    Source: https://twitter.com/tritum/status/988778861948174336