Before User Edit Trigger

The Before User Edit trigger is a client trigger and executes after a record form loads into the browser and before the user makes any changes to the form. Before User Edit is a client trigger because it occurs after the form loads into the browser. The trigger occurs due to user edit of an existing record or creation of a new record. Before User Edit only occurs one time when the record form is present in the browser.

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

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

Use this trigger to make changes to the record form in the browser before the user edits any field. You can use this trigger with any of the field value actions, such as the Set Field Value action, or with the Return User Error action. For a list of all the actions that support this trigger, see Workflow Triggers Quick Reference.

Before User Edit Trigger Example

The following screenshot shows a state with actions set to execute on the Before User Edit trigger:

A screenshot showing an example of a workflow state with actions set to execute on the Before User Edit trigger.

Action Type

Action Execution

Set Field Display Type

The two Set Field Display Type actions disable the Email field and the Repairs Complete checkbox, respectively.

The fields are visible but are not editable.

Set Field Required

On a Bike Repair record, the Description field is not required by default. The Set Field Required makes the Description field required.

This state is designed to customize the record form, depending on the user role accessing the record in the workflow. The following screenshot shows the respective action results on the record form:

An example of a customized record form, with the Email, Description, and Repairs Complete fields highlighted.

Before User Edit Trigger Guidelines

Important:

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

Related Topics

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

General Notices