- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 12:17 PM
I have a record producer which I need to display a section of dynamic HTML from a table. I have tried using a Rich Text Label, but no value is displayed when assigning a value from an onLoad client script. I have tried both setValue and setLabelOf commands, neither work. The only field type that displays the message is type HTML, but I don't want an HTML editor on the page, just the rendered HTML.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 06:10 AM
My record producer is not in the Service Portal, therefore setLabelOf() does not work. I did find the following solution that worked with one minor adjustment.
Solved: Re: Change label for catalog variable - ServiceNow Community
I had to change "span" to "div" in the following statement:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 07:33 PM
For a rich text label, you would not set the Value of the label, but the Label.
g_form.setLabelOf("your_rich_text_label", "<p>Here's your new Label!</p>");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 06:10 AM
My record producer is not in the Service Portal, therefore setLabelOf() does not work. I did find the following solution that worked with one minor adjustment.
Solved: Re: Change label for catalog variable - ServiceNow Community
I had to change "span" to "div" in the following statement: