You can import client scripts from a target NetSuite account into your SuiteCloud projects. Client Scripts are generally used to validate user-entered data, and to auto-populate fields or sublists when triggered by various form events.
There are 12 client event types that can trigger the execution of your client scripts:
- pageInit
- saveRecord
- validateField
- fieldChanged
- postSourcing
- lineInit
- validateLine
- recalc
- validateInsert
- validateDelete
- localizationContextEnter
- localizationContextExit
You can create a client script object in your SuiteCloud project and deploy it to a target NetSuite account. A client script can also be imported from a NetSuite account into your SuiteCloud project.