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.) else commit() NOTE: The getValue JavaScript method is defined in the <publication folder>/js/interface.js file.
In the corresponding web page, a message pops up if the user does not enter a value for Family Name, and clicks Save. |