good morning, I have a script that accesses the do...
# suitescript
a
good morning, I have a script that accesses the document object and runs great in the chrome console in both Edit and View modes, but when I run it as a User Event in NetSuite, I get a ""document" is not defined" reference error. The script also works fine as a Client Script in PageInit, but that won't fire in view mode. Any suggestions?
s
This is expected behavior, UserEvents are not interacting with the client so there is no document to interact with.
👍🏼 1