Can't call a script include from a UI page.

Nicol_
Giga Contributor

Hi!
I'm trying to execute a script include inside a UI page.
I followed this guide: https://docs.servicenow.com/bundle/paris-application-development/page/script/ajax/topic/p_AJAX.html

and I'm trying to make the example work.

This is my script include

find_real_file.png

and this the UI page
find_real_file.png

if I try to execute the code I get:

find_real_file.png

and the log inside the include script is not printed.

Any idea on what I'm doing wrong?
Thank you

1 ACCEPTED SOLUTION

RaghavSh
Kilo Patron

Your script include is not client callable, mark that checkbox true and check.


Raghav
MVP 2023

View solution in original post

3 REPLIES 3

RaghavSh
Kilo Patron

Your script include is not client callable, mark that checkbox true and check.


Raghav
MVP 2023

Ankur Bawiskar
Tera Patron
Tera Patron

@Nicolò 

Set Client Callable Checkbox as true

Script includes

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@Nicolò 

Set Client Callable Checkbox as true so that you can call script include function from client side

Script includes

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader