Popup Messages in custom Agent workspace

Pediredla Sethu
Tera Contributor

Whenever a record is open and perform below actions in custom agent workspace but not on console I need to get Info message / some popup message like

"RECORD IS UPDATED" if user updates a record on click of UPDATE button.
"RECORD IS DELETED" if user deletes a record on click of DELETE button.

 

If anyone knows provide some solution on this?

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

hello @Pediredla Sethu Madav Venkatesh ,

you need to write a workspace client script to get the alert when you click on those UI actions 

find_real_file.png

You need to check workspace form button for the UPDATE AND DELETE ui actions and you need to write script like below

You need to check your table name before printing the alert because it might be GLOBAL UI action and this alert will come for all the tables where ever UPDATE OR DELETE IS clicked

function onClick(g_form) {
if(g_form.getTableName() =="your_table_back_end_name")
	{
		alert('Record udpated');
	}
}

 

please mark my answer correct if it helps you

 

View solution in original post

5 REPLIES 5

Community Alums
Not applicable

Hi,

You can refer to this solution:https://community.servicenow.com/community?id=community_question&sys_id=21a5c6a0db2aa410da1999ead396...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

thanks for replying but I already gone through the above link and I don't want confirmation message instead I need info message or alert message kind of thing.

Mohith Devatte
Tera Sage
Tera Sage

hello @Pediredla Sethu Madav Venkatesh ,

you need to write a workspace client script to get the alert when you click on those UI actions 

find_real_file.png

You need to check workspace form button for the UPDATE AND DELETE ui actions and you need to write script like below

You need to check your table name before printing the alert because it might be GLOBAL UI action and this alert will come for all the tables where ever UPDATE OR DELETE IS clicked

function onClick(g_form) {
if(g_form.getTableName() =="your_table_back_end_name")
	{
		alert('Record udpated');
	}
}

 

please mark my answer correct if it helps you

 

thanks for replying but I already gone through this link but Confirmation message is already coming but I need info or alert message kind of thing