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.

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?