Random clarification question: if a record form is...
# suitescript
c
Random clarification question: if a record form is submitted by clicking save does the user event beforesubmit still complete if they move away from the page after clicking save? I've got a long user event script firing that can't be scheduled and it sits for a long time on the page as "Waiting for...". I'm pretty sure it does as it's server side but I want to make sure. Last thing I want is for them to submit a tonne of info and then accidentally click away to start again.
c
An user event script runs on the server. If the client (browser) navigates to a different page once the request has been sent to the server then server side processing should be unaffected
c
Yeah I thought this was the case. Just wanted a sanity check thanks as the page waits for a server response.
c
I write that with my knowledge of how HTTP requests and web clients and servers work, not with specific knowledge of how NS works
I guess it could be possible for some client JS to detect the navigation to another page and to send a request to the server to notify it that the page has changed but...
... if server processing has started already then would/should it be stopped in that case?
I doubt that's how NS works
c
Yeah I doubt it too but I've seen Netsuite do some odd things overall.
c
I seriously doubt it. Such behaviour would create unpredictable results and I can't see how it would be better than letting the request processing complete