Commit c36447f2 authored by Elias Häußler's avatar Elias Häußler 🐛 Committed by waldhacker
Browse files

[TASK] Streamline form element labels in form editor

Form elements in the tree component are labelled with the label of the
corresponding form element definition, whereas the stage component uses
the form element's type. This has now been streamlined to always use the
label of the form element definition, since editors might not be
interested in (internal) types anyway.

Resolves: #97507
Releases: main, 11.5
Change-Id: Ife4c52207957db3cfd1cfa1818ccc9628e36b91c

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Björn Jacob's avatarBjörn Jacob <>
Tested-by: waldhacker's avatarwaldhacker <>
Reviewed-by: Björn Jacob's avatarBjörn Jacob <>
Reviewed-by: waldhacker's avatarwaldhacker <>
parent 9717fe4c
......@@ -732,7 +732,7 @@ function factory($, Helper, Icons) {
template = $($(template.html()));
getHelper().getTemplatePropertyDomElement('_type', template).text(formElement.get('type'));
getHelper().getTemplatePropertyDomElement('_type', template).text(getFormElementDefinition(formElement, 'label'));
getHelper().getTemplatePropertyDomElement('_identifier', template).text(formElement.get('identifier'));
if (formElementTypeDefinition['_isCompositeFormElement']) {
......@@ -981,7 +981,7 @@ function factory($, Helper, Icons) {
.getTemplatePropertyDomElement('_type', template)
.append(getFormElementDefinition(formElement, 'label'));
.getTemplatePropertyDomElement('_identifier', template)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment