Client Scripts Vs. User Event Scripts

Client Scripts Vs. User Event Scripts

Many of the tutorials in this series have been about the Client Script. If you have been following along, you should understand how to create and use client scripts in different basic scenarios. Now we can start touching on the basics of User Event scripts. When we...
Message Module

Message Module

You may have noticed that NetSuite displays messages as a colored banner at the top of the page. When you enter a transaction you will see a green banner that tells you the transaction was created successfully. That same message functionality is available to use in...
Client Script Validate Field Function

Client Script Validate Field Function

The purpose of the validateField client script function is to control what can and can’t be entered in a certain field. One example of how you might want to place controls on a field is with the Job Title field on the customer record. You might want it to be at...
Client Script Save Record Function

Client Script Save Record Function

The saveRecord client script function is beneficial when you want to prevent a user from saving a record if certain conditions are true. For instance, if you want to prevent a Purchase Order from being saved if the quantity of a particular item is under a certain...
Client Script Field Changed Function

Client Script Field Changed Function

So far in the sample script we have been working with the “pageInit” function. That function is triggered as soon as you load a record to edit it. In this tutorial we will look at the “fieldChanged” function to explore more ways client scripts...