Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Message in SOW

ServiceNow10sun
Giga Guru

What is the way to show message in service  operation workspace . if i use onload client script then the message comes and goes off in 4 seconds i need the message to stay for sometime until the user clicks on cross. i do not want to use addwarning message.

6 REPLIES 6

Hi @ServiceNow10sun ,
I tested this on my PDI (Build tag: glide-zurich-07-01-2025__patch4-11-14-2025), and it is working as expected.

Could you please try the following on your end:

  1. Clear the cache
  2. Verify the client script configuration (check the correct table and view)

If the issue still persists, please share a screenshot of your client script configuration.

Pavan Srivastav
ServiceNow Employee

UI Builder Page-Level Banner (Recommended for SOW)

Since SOW is built on UI Builder, the proper approach is to add a persistent banner component directly in the workspace layout:

Step 1 — Go to UI Builder → Service Operations Workspace → your view

Step 2 — Add a built-in Alert Banner or Stylized Text component at the top of the page/form panel

Step 3 — Bind its visibility to a data resource or client state parameter so it only shows under your condition:

 
 
javascript
// Client State Parameter: showBanner = true/false
// Set this in your component event handler or data resource

Step 4 — Wire the close/cross button to set that client state parameter to false:

 
 
javascript
// On the X button's click event
{
    "action": "SET_VALUES",
    "parameterName": "showBanner",
    "value": false
}

This gives you a fully persistent, user-dismissible banner that respects workspace UX patterns properly.