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.

How to remove the text below the list collector in RITM and sc_task

Community Alums
Not applicable

Hi,

I have the list collector variable. In the RITM level, I am getting extra text. Please let me know how to remove it.

 

list_1.PNG

 

list_2.PNG

 

Regards

Suman P.

6 REPLIES 6

Community Alums
Not applicable

Hi @Anurag Tripathi ,

I got 3 other client scripts

 

function onLoad() {

	g_form.setVisible("application", true);
	g_form.setMandatory("application", true);
	g_form.setVisible("request_type", true);
	g_form.setMandatory("request_type", true);
	g_form.setVisible("justification", true);
	g_form.setMandatory("justification", true);
	g_form.setVisible("uin", false);
	g_form.setVisible("client_id", false);
	g_form.setVisible("temporary_password", false);

}

 

function onLoad() {

    var ga = new GlideAjax("onLoadUserIDContactCenterClass");
    ga.addParam("sysparm_name", "onLoadUserIDContactCenterFunction");
    ga.addParam("sysid_key", g_user.userID);

    ga.getXML(callBackFunction);

    function callBackFunction(response) {
        var answer = response.responseXML.documentElement.getAttribute("answer");
        var op = JSON.parse(answer);
        g_form.setValue("userid", op.callerID);
        g_form.setValue("email", op.callerEmail);
        g_form.setValue("job_title", op.callerTitle);
    }
}

 

vfunction onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }

    var ga = new GlideAjax("onChangeUserIDContactCenterClass");
    ga.addParam("sysparm_name", "onChangeUserIDContactCenterFunction");
    ga.addParam("sysid_key", newValue);
    ga.getXML(callBackFunction);

    function callBackFunction(response) {
        var answer = response.responseXML.documentElement.getAttribute("answer");
        var op = JSON.parse(answer);
        g_form.setValue("userid", op.callerID);
        g_form.setValue("email", op.callerEmail);
        g_form.setValue("job_title", op.callerTitle);

    }
}

 

Regards

Suman P.

Make sure this is not checked on the onload ones

AnuragTripathi_0-1721050654220.png

 

-Anurag