Un-require Advanced HTML/Text title

Created on 20 December 2023, 6 months ago
Updated 28 May 2024, about 1 month ago

Problem/Motivation

The Advanced HTML/Text element has few flaws:
- the title seems to be required unreasonably, which makes it impossible to provide a piece of rich text without having a label rendered with it,
- title itself being wrapped into a label tag seems out of place, as the rich text output is not a form element but merely an HTML output without a wrapper,
- it would be beneficial to allow the title to be wrapped into a heading element of choice, with a possibility to hide it.

Steps to reproduce

Try adding Advanced HTML/Text into a form - it is impossible to control title appearance.

Proposed resolution

For Advanced HTML/Text element:
- un-require title
- allow for title wrapper selection

User interface changes

On Advanced HTML/Text element config page:
- title field is not required
- title wrapper can be selected, including "hidden" option.

✨ Feature request
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States euk

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

Comments & Activities

  • Issue created by @euk
  • Status changed to Closed: works as designed 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    The #title is NOT required for 'Advanced HTML/Text'. My best guess is that the YAML source for the element includes a #title, which is now needed.

  • πŸ‡¨πŸ‡¦Canada yang_yi_cn

    ok I have same issue and google search landed me here.

    I think there is a workaround, but reply #2 was not very clear.

    Basically in the UI, if you already have "title" then it shows as required. But you can edit the YAML file and delete the "#title" completely, and the UI will still work - the title input will disappear and being replaced by a "key = [title]" thing instead. And on the rendered form, the title / label will disappear.

Production build 0.69.0 2024