Discussions
Checking Event Type in Client SuiteScripts
We have client scripts running on the TimeBill and Invoice transactions, and we are looking for a way to restrict these scripts to run only when those transactions are created. Ideally, we want to check the event type from the field changed function. We tried setting a global variable in the page init function after reading that function's event type parameter, but the variable is reset by the system when the page init function finishes execution. Has anyone else run into this problem, and know of a workaround?