The CreatorCon Call for Content is officially open! Get started here.

how to use glideajax in scoped application?

Narayana Swamy
Tera Contributor

I tried glideajax in scoped application by using getXML i am trying to assign value to a field it is not assigning.

 

11 REPLIES 11

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.

@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.