GlideAjax: Not able to access function inside script include

jivanjotkaur
ServiceNow Employee
ServiceNow Employee

I have created a custom application and i am trying to do a GlideAjax, though onSubmit client script , to access a script include within the same scope. I put a debug statement each inside the 'initialize' and 'testfunction' which i am calling in my client script. I found that on execution of the script only the debug statement inside initialize is reflecting in the System Logs. Is the 'testfunction' not getting called at all? The value in the 'answer' variable is also null after execution.

Following is my script include:

Screen Shot 2015-10-04 at 1.40.53 AM.JPG

Corresponding Client Script:

Screen Shot 2015-10-04 at 1.41.32 AM.JPG

20 REPLIES 20

Hi michaelrodway,

I know this post is quite time ago, but I'm running the same scenario.

Did you find a way out to have this GlideAjax self contained in Scoped application?

 

Thank you.

Regards,

Oswaldo