Modify the Customer Fact Sheet button functionality in SOW for incident and catalog task

Maria Lucia da
Tera Contributor

Hi everyone, I have this form action in SOW and I need to do this: Modify the Customer Fact Sheet button functionality in SOW for the Incident and Catalog task so that when clicked, it goes into Related records to show the related list (of course, once it has been added).

 

Does anyone know how to make this change? The current code is implemented as a client script:

function onClick() {

var gaUser = new GlideAjax('UserUtils');

gaUser.addParam('sysparm_name', 'getUserCompany')

gaUser.addParam('sysparm_user_sysid', g_form.getValue('caller_id'));

gaUser.getXMLAnswer(getCompany);

function getCompany(result) {

if (result) {

g_aw.openRecord('core_company', result);

}

}

}

0 REPLIES 0