Symptom
When modifying labels in Learning to add HTML code such as <br>, <b>, <i>, etc. to style the text, the label is not updated as expected. The label can either:
- Work in one location but not in another as the same label can be used in multiple location
- Not work at all and it shows the HTML code
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
SAP SuccessFactors Learning
Reproducing the Issue
- Go to Learning Administration > References > Manage Labels > Labels >
- Search for the labelID > open it in the edit mode > go to the Locales tab >
- Update the label text to include HTML code and click on 'Apply Changes' >
- Proceed to the section in the application that shows this label >
- Notice that the label update did not apply as expected
NOTE: The same behavior can be observed even if the label was updated through a slightly different path: Learning Administration > References > Manage Labels > Locale Labels > search for the labelID > for the locale that needs to be updated, open the record in the edit mode > update the label text to include HTML code and click on 'Apply Changes'
Cause
Learning only supports HTML code when the field already has tools to account for it. Such examples are Item Descriptions when the HTML setting is enabled, Item Cover Pages, Custom Tiles, etc. Only if the buttons to edit text (such as "<>", "Source", bold, italic, hyperlink, etc.) are included can there be further HTML customization than basic text styling.
Any text field in the system that does not have text styling tools will not accept HTML. While the system does not directly prohibit from adding HTML into static text fields, HTML code can work but is not supported.
When editing labels, the text editor has no styling tool. Hence, the label editor doesn't support the HTML code.
Resolution
HTML code is only supported in the text fields that have the rich text editor tools. Any static fields are not supported. If the HTML code does not style/work as expected and the field is a static field, the HTML must be removed as only plain text is accepted.
Alternatively, to have a different system behavior, it would be possible to have an enhancement request created for it (as per KBA 2090228), where the Learning Product Management team can further review and assess the requested functionality to be considered in a future release.
See Also
Keywords
HTML, tool, text, editor, source, not, working, correctly, correct, wrong, view, visible, bold, <b>, <br>, line, break, custom, lms, label, WYSIWYG, rich, text, update, sf , KBA , LOD-SF-LMS-ADM , System Admin, Global Variables, References , LOD-SF-LMS-ITE , Items , LOD-SF-LMS-CAT , Catalog , Problem