- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2025 10:13 PM
when i use glide ajax in script include and using client Script onsubmit on form for preventing form submission . when i click order now the form showing this in scoped application what can i do
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 09:16 PM
Accessible from other application scopes
- Set Accessible from: to “All application scopes”.
- This ensures that the Script Include can be called from client scripts or other components outside its own scope.
Client Callable
- Mark the Script Include as Client Callable by checking the Client Callable checkbox.
- This allows it to be invoked from client-side scripts using GlideAjax.
Extending AbstractAjaxProcessor
- The Script Include should extend AbstractAjaxProcessor to handle AJAX calls properly.
var Yourscriptinclude = Class.create();
Yourscriptinclude .prototype = Object.extendsObject(AbstractAjaxProcessor, {
myFunction: function() {
var param = this.getParameter('sysparm_name');
// Your logic here
return "Processed: " + param;
}
});
Stay awesome,
Roshnee Dash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2025 10:06 PM
Hi @SIVAKARTHICS
Your attachment is not visible.
You are using glideajax in script include does this mean your script include is client callable from on submit client script or what
Stay awesome,
Roshnee Dash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2025 10:15 PM
@SIVAKARTHICS wrote:
when i use glide ajax in script include and using client Script onsubmit on form for preventing form submission . when i click order now the form showing this in scoped application what can i do
Hello @SIVAKARTHICS,
If Glide AJAX is used in a Script Include within a scoped app, make sure:
- The Script Include is marked as accessible from other application scopes (`Accessible from:` set to “All application scopes”).
- It's declared as `client callable` for client-side use.
- In your Client Script `onsubmit`, use `return false;` after the GlideAjax call to stop form submission properly.
Double-check these and it should smooth out the process. Let me know if it still acts up—I’ve got you.
Best regards,
James Goff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 09:16 PM
Accessible from other application scopes
- Set Accessible from: to “All application scopes”.
- This ensures that the Script Include can be called from client scripts or other components outside its own scope.
Client Callable
- Mark the Script Include as Client Callable by checking the Client Callable checkbox.
- This allows it to be invoked from client-side scripts using GlideAjax.
Extending AbstractAjaxProcessor
- The Script Include should extend AbstractAjaxProcessor to handle AJAX calls properly.
var Yourscriptinclude = Class.create();
Yourscriptinclude .prototype = Object.extendsObject(AbstractAjaxProcessor, {
myFunction: function() {
var param = this.getParameter('sysparm_name');
// Your logic here
return "Processed: " + param;
}
});
Stay awesome,
Roshnee Dash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 10:10 PM
There is some issue going on in community that images are not visible.
please add it using browse feature and add as attachment to post
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader