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

4 REPLIES 4

Ankit Marwaha2
Tera Expert

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.    

Sarthak Kashyap
Mega Sage

Hi @manoj1 ,

 

Please check below links

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0696703

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2445658

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak