We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Agent workspace client script

BT10
Tera Expert

Hi Expert ,

Please check the following UI Action.

We know that we can write client side + Server side code in same UI action with the help of gsftSubmit() function.

I want to do same for "Workspace client script" as well . so when i click button from workspace , it should trigger client side an server side code both. 

Current it seems "Workspace client script"  only support client side function only and very strictly .

 

 

find_real_file.png

1 ACCEPTED SOLUTION

hvrdhn88
Giga Patron

in your workspace client script , use the below line. 

 

function onClick(g_form) {

	g_form.addInfoMessage('hey');
 
	g_form.submit(g_form.getActionName());
}

 

Note: it's known issue. 

https://hi.service-now.com/kb_view.do?sysparm_article=KB0754163

View solution in original post

2 REPLIES 2

hvrdhn88
Giga Patron

in your workspace client script , use the below line. 

 

function onClick(g_form) {

	g_form.addInfoMessage('hey');
 
	g_form.submit(g_form.getActionName());
}

 

Note: it's known issue. 

https://hi.service-now.com/kb_view.do?sysparm_article=KB0754163

@Harshvardhan It seems like that Knowledge Article is no longer available.  What were you trying to convey, please, by linking to it?