Script include and client script not returning any values

Shalika
Tera Expert

I have a catalog item with variable "Change Request" which is a refrence field to change request table and another variable "SP Email" .I have to fetch the email ID of SP change coordinator from change request table .

I am using script include and onChange client script for this but not able to fetch any values. 

Shalika_0-1668056336430.png

onChange Client Script

 

Shalika_1-1668056382844.png

 

 

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @Shalika,

 

I agree with @Tony Chatfield1, In your script include, line

var ciID = this.getParameter('sysparm_name');


should be

var ciID = this.getParameter('sysparm_ci');

 

Note - 

It should be same parameter name used in client scritps Glide ajax call.

ga.addParam('sysparm_ci', g_form.getValue('change_request_id'));

 

 

Thanks,

Sagar Pagar 

The world works with ServiceNow

View solution in original post

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi @Shalika,

 

I agree with @Tony Chatfield1, In your script include, line

var ciID = this.getParameter('sysparm_name');


should be

var ciID = this.getParameter('sysparm_ci');

 

Note - 

It should be same parameter name used in client scritps Glide ajax call.

ga.addParam('sysparm_ci', g_form.getValue('change_request_id'));

 

 

Thanks,

Sagar Pagar 

The world works with ServiceNow