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
NickSuite
02/10/2022, 7:29 PM
yes. page Init. You will have scriptContext.mode property
NickSuite
02/10/2022, 7:30 PM
You can also get it from the memdoc parameter from the URL of the page.
NickSuite
02/10/2022, 7:30 PM
OR you can only attach that script in before load event when it triggers for copy.