Before Field Edit Trigger

The Before Field Edit trigger is a client trigger and executes before a user completes changes to a field on a record form. Before Field Edit is a client trigger because it occurs during the edit of a record during the time that it is loaded in the browser. Before Field Edit only occurs during the edit of a field on a record form when the record is in a state.

When you use the Before Field Edit trigger for an action, you must also identify the name of the client field in the Client Fields multi-select box for the action. This identifies which record field to execute the action on. For more information about Client Fields for actions, see Creating an Action and Using Conditional Fields with Actions.

The following diagram shows common record edit events and when the Before Field Edit trigger executes:

A diagram showing common record edit events and when the Before Field Edit trigger executes.

Use this trigger to validate field lengths, restrict field entries to a predefined format, or validate a field against values in an associated field. For example, use this trigger with a Return User Error action to alert users that they must fix a field value before the user continues editing the form. For a list of all the actions that support this trigger, see Workflow Triggers Quick Reference.

Before Field Edit Trigger Example

The following screenshot shows a Return User Error action used to validate the value of the Notes on Bike Pick-up field on a Before Field Edit trigger:

An example of the workflow definition page that shows a Return User Error action that is being used to validate the value of the Notes on Bike Pick-up field.

The following screenshot shows the results of the Return User Error action on the record form. The error appears after the user moves away from the Notes on Bike Pick-up. Clicking OK returns the window focus to the field that needs fixed. The popup keeps appearing until the user fixes the error.

An example of an error message that appears as a result of the Return User Errir action being added to the workflow.

Before Field Edit Trigger Guidelines

Consider the following when you use the Before Field Edit trigger:

Related Topics

Server Triggers Reference
Triggers Reference
Workflow Triggers Quick Reference
Client Triggers
SuiteFlow Trigger Execution Model

General Notices