How to show info message in native UI and Workspace in servicenow

ShaikSaiduN
Tera Contributor

Hi,

 

when i click create request button in incident,it opens one dailog box and fill related information about request and submit.After submit i have to show info message(Request has been created successfully) in both native view and workspace.In UI Page i'm adding g_form.addInfoMessage, it  is working in native view but not in workspace.how to acheive in workspace as well? Please help me.

7 REPLIES 7

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ShaikSaiduN 

 

Are you referring to OOTB UI action? If yes, then you need to make change in same only.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

No OOB.Please see below code it is working for native UI not for workspace.

ShaikSaiduN_0-1741944935383.png

 

Hi @ShaikSaiduN 

 

https://www.servicenow.com/community/service-operations-workspace/client-script-doesn-t-work-on-serv...

 

@Medi C any inputs.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

The exact requirement is on Case record there is a button Create Jira ticket when you click that button i dailog box comes up in native UI as well as workspace when you fill the information and click on submit. we have to show jira task created successfully in native ui and workspace.how to do this?There is a UI page it is configured. In UI Page,i'm trying to add infomessage in client script but it is not working.

ShaikSaiduN_0-1741945883177.png