Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Onload client script is ececuting twice in workspace executing single time in normal view

manoj1
Tera Contributor

Onload client script is ececuting twice in workspace executing single time in normal view

3 REPLIES 3

Ankit Marwaha2
Tera Contributor

Hi @manoj1 

Can you please share more information on configuration and code snippet to understand what you're trying to achieve. 

Some methods that work in the classic UI may not be supported or may behave differently in Workspace.

 

or may be "setting the Isolate Script field to "True" may help resolve issues"

 

If my response helped, please mark it as the accepted solution so others can benefit as well.     

 

Thanks & Regards

Ankit Marwaha

LinkedIn: https://www.linkedin.com/in/ankit-marwaha

var ga = new GlideAjax('addinginfomessage');
ga.addParam('sysparm_name', 'getCampus');
ga.addParam('sysparm_buildingid', g_form.getUniqueValue());
ga.getXMLAnswer(function(answer) {
g_form.addInfoMessage(answer);
});

Nilesh Pol
Kilo Sage
Kilo Sage

@manoj1 It might because of the other configuration written at time of loading the form it may be the other UI policy or Display BR, find those all configurations that executing at loading time. If found, try to disable it and verify again.

 

If my response helped, please mark it as the accepted solution so others can benefit as well.