Client Script Returning Null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
So I have this combination of onChange client script and script include
The answer is returning in null and I cannot figure out why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Good job with the Client Script logs. If you are getting an unexpected 'answer' add some logs to the Script Include to confirm that it is running and to see how far it gets. If you determine it's not running, ensure it is in the same Application/scope as the Client Script and the form/Catalog Item it is called on, or else use the full API Name in the GlideAjax call. Also make sure there are not any other Script Includes with the same name. Did you add a role/access control to the Script Include? Is there anything helpful in the browser console or system logs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @Brad Bowman ,
Thanks for replying. So I was thinking that the script include might be having some issue so I tried calling it from a background script and it returns the answer as expected. But when I try to call it from my catalog client script, it is always returning null.
About the scope, I have made sure both my script include and the record producer are in the same scope.
