Modify the compose section in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 04:28 AM
Hi All,
I want to modify the Compose section in a custom workspace. Currently, in the comments box it is showing as ""Type your comments here". I want to customize this.
Can anyone please guide me in achieving this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 05:21 AM
Can you try writing down a onLoad client script on Incident record having GLOBAL field unchecked & View field set to 'workspace' without quotes.
Put below code in it & see if it works -
var comments = g_form.getControl("comments");
if(comments) {
comments.placeholder = "Whatever new text you want, put here";
}
Do mark this response as CORRECT if it works or helpful if it helps achieving some part of your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 11:36 PM
Hi @Nagashree5,
These messages come from sys_ui_message table. You might not see them in the table, if you have only one language installed in your instance. But, you can create a new message with the same key and the customized text value that you want to show.
Here are the messages that are rendered on the compose section from sys_ui_message:
- Type your {fieldLabel} here
- Post an Activity Stream message
- Everyone can see this comment
- Post {fieldLabel}
You can update the messages and see the changes on the UI.