Join Slack
Powered by
Is it possible to use a User Event beforeLoad entr...
# suitescript
t
Tyler
08/15/2019, 6:52 PM
Is it possible to use a User Event beforeLoad entry point to kick a user back to the previous page based on a value?
b
battk
08/15/2019, 7:40 PM
you can use scriptContext.request.headers to look at the base_t cookie, which should contain information about the previous page
battk
08/15/2019, 7:42 PM
a more normal way would be to add client script which uses window.history.back()
t
Tyler
08/15/2019, 7:42 PM
Both good ideas, but I ended up just throwing an error when a user tries to access a page
Open in Slack
Previous
Next