how to use glideajax in scoped application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 01:36 AM
I tried glideajax in scoped application by using getXML i am trying to assign value to a field it is not assigning.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 07:42 PM
Hi @Sandeep Rajput ,
I modified as info also in alert I am getting current date/time but the value is not assigned to u_hold_start/end field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2023 06:06 AM
@Narayana Swamy GlideAjax is an asynchronous call hence by the time you receive the response form server the form is already submitted. You need to follow the approach mentioned here https://www.servicenow.com/community/developer-blog/how-to-async-glideajax-in-an-onsubmit-script/ba-... to make the onSubmit script stay on the form till you get the response.