Webform's 'Advanced HTML/Text' not displaying properly

Created on 3 October 2024, about 1 month ago

Problem/Motivation

If you use an 'Advanced HTML/Text' element in a a webform it doesn't get displayed properly: it's (HTML) content is left out. It has a type of 'processed_text' but when Civictheme's 'form-element--civictheme-field.html.twig' is invoked it isn't capable of handling that type.

Steps to reproduce

Add 'Advanced HTML/Text' element to webform and give it some default contents. Display the webform: contents is missng.

Proposed resolution

Either some extra preprocessing to allow 'form-element--civictheme-field.html.twig' to deal it or an additional
'form-element--civictheme-field--processed-text.html.twig' template that maps it to a paragraph (see example - but I don't know if this would have any unintended side-effect).

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.8

Component

Code

Created by

🇬🇧United Kingdom mwjansen Bristol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024