Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Modify the compose section in workspace

Nagashree5
Tera Contributor

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.

Nagashree5_0-1701347281846.png

Can anyone please guide me in achieving this.

2 REPLIES 2

H S B
Giga Guru

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.

 

mangeshgangarde
Tera Contributor

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:

  1. Type your {fieldLabel} here
  2. Post an Activity Stream message
  3. Everyone can see this comment
  4. Post {fieldLabel}

You can update the messages and see the changes on the UI.