Before User Submit Trigger

The Before User Submit trigger is a client trigger and executes after a user clicks Save on a record and before the Before Record Submit server trigger executes. Before User Submit is a client trigger because it occurs when the form is present in the browser.

The following diagram shows common record edit events and when the Before User Submit trigger executes:

                                                            User creates record / clicks Edit on a record   Record loads in browser     User edits a record field User continues to edit a record     Field is sourced from previous edit User clicks Save                   Before User Edit (one time per record load) Before Field Edit Client Trigger Server Trigger Before User Submit After Field Edit After Field Sourcing Before Record Load Before Record Submit        

Use this trigger to validate a record form before the Before Record Submit trigger executes. Using this trigger with the Return User Error action, instead of the Before Record Submit trigger, enables a user to return to the form to fix any field value before submitting the form to the NetSuite database. For a list of all the actions that support this trigger, see Workflow Triggers Quick Reference.

Before User Submit Trigger Example

The following screenshot shows a Return User Error action on the Before User Submit trigger that validates that the Repairs Complete checkbox is selected before the user saves the record:

A portion of the workflow definition page showing a Return User Error action that is triggered by the Before User Submit trigger.

If the user clicks Save on the record without selecting the Repairs Complete checkbox, NetSuite displays the error message. The user clicks OK and then selects the checkbox.

An image of the error message that is displayed and tells users to click a checkbox before they can submit this record. The error message includes an OK button.

Before User Submit Trigger Guidelines

Important:

Use the following guidelines when using the Before User Submit trigger.

Related Topics

General Notices