So, looks like client scripts don't run on view. ...
# suitescript
d
So, looks like client scripts don't run on view. I need to display a message when a record is opened in view mode based on some criteria. The message displayed is dynamically generated based on a bunch of script variables, so the plain text of the 'show message' workflow action won't do. There doesn't seem to be a function that will run on user event scripts to display a message beforeLoad, either. Since the client script only executes pageInit on edit/create and not view, what is my best alternative?