Glide AJAX not working

umaaggarwal
Giga Guru
Giga Guru

Hello Experts,

My goal is to have a string field on incident form and when the form loads, it should get populated with CI details ( like name , manufacturer , asset tag etc ) based on what is selected under configuration item.

To achieve this, I created onload client script, and using glideajax to interact with script include which returns the data from that specific configuration item, however I am getting null value as a result. Can someone please help ?

 

Below is the client script 

 

find_real_file.png

script include 

 

find_real_file.png

 

Output 😞

 

find_real_file.png

 

 

17 REPLIES 17

Ahmmed Ali
Mega Sage

try creating onchange client script instead and remove isLoading from the script so that it runs on load also.

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Ajaykumar1
Tera Guru

Hi Uma,

Is your log messages are getting printed..?

Also cross check in your script include that Client callable is checked/True.

Regards,
Ajay

HI Ajay,

 

yes, scrip include is client callable and logs get printed only from client scripts. Logs from script include is not getting printed. Seems like script include is not getting called

 

Thanks!

Uma

the only error I am seeing is in gs.log() raaju should be in quotes. may be that is the issue. 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali