The Before Field Edit trigger is a Client Trigger that fires before changes to the selected Triggering Client Fields are committed, and before the focus switches to another form object. For example, say the Memo field is set as a triggering client field, when the user changes its value and then tries to click the Save button, the trigger fires before the button is clicked.
Use this trigger to validate field values and properties such as text length, format, etc.
If an error occurs during this trigger, a pop-up message will show up that describes the error. The focus will stay on the current field until the error is fixed. This behavior can be exploited by the workflow designer using the Confirm/Return User Error action.
This trigger is valid for the following workflow actions:
Sample Usage Scenario:
Value of PO# field on Sales Order should not exceed 5 characters.
Workflow Action Setup for the above Scenario:
ℹ️ A point to consider when working with Before Field Edit Trigger:
- There is an odd behavior associated with this trigger where the focus goes back and forth between form objects that the user interacts with. This is usually caused by an invalid Formula Condition set for actions using this trigger.
Let us know what you think about this topic by leaving a comment or using the reaction buttons below.
-Jack