I need to have a client script run but only when a...
# suitescript
p
I need to have a client script run but only when a salesorder is created via the make a copy of button. Is there a way to tell a SO is a copy before it is saved?
n
yes. page Init. You will have scriptContext.mode property
You can also get it from the memdoc parameter from the URL of the page.
OR you can only attach that script in before load event when it triggers for copy.