Scripting Example: Client Check on a Mandatory field
You can check mandatory columns before saving. Suppose an inserted person record cannot be saved if the Family Name field has no value. In this case, a message must be shown to prompt the user to enter a Family Name:
alert(Please enter a value for Family Name.)
In the corresponding web page, a message pops up if the user does not enter a value for Family Name, and clicks Save.