Client Script not executing on extended table

Mark Laucus
Giga Guru

I am having an issue where a client script that is assigned at the task table will execute on Incident And Change records but when we extended the table for HR records it does not execute at all (and it did work at one time). My script is updating an assignment group when a business service is applied to the form. Any thoughts?

2 REPLIES 2

Jim Coyne
Kilo Patron

Check out the following post - http://community.servicenow.com/blog/jimcoyne/internet-explorer-really-can-be-your-friend

I'm thinking there may be a script error somewhere, and it may not be in the one you are talking about. A script error in "any" script will stop all other scripts from running, including UI Policies.


Mark Laucus
Giga Guru

You were correct on a script. We have a number of client scripts that are used to hide variables and they are using the DOM manipulation which has issues in Calgary and supposed to be patched in Calgary 3. I had an error in the code below when I set the 'var item = items.item(i);'



// Show/hide variables
var map = gel('variable_map');
var cat_form = new ServiceCatalogForm('ni', true, true);

var items = map.getElementsByTagName("item");
for (var i = 0; i < items.length; i++) {
var item = items.item(i);
var name = item.getAttribute('qname');
var id = item.id;
var nm = new NameMapEntry(name, "ni.QS" + id);
cat_form.addNameMapEntry(nm);
}


When I turned off the script my other issue resolved itself. I will just fix all the scripts to address that issue and see if I can get it back going. Thanks for the help.