The Before User Submit trigger is a Client Trigger that fires when the Save button is clicked on the form before submitting the record. This trigger is similar to the Before Record Submit server trigger.
If an error occurs during this trigger, a pop-up message will show up that describes the error and the record will not be submitted.
Use this trigger as an alternative to Before Record Submit where running into an error would cause problems and inconvenience. For instance, a custom error message triggered on Before Record Submit will consequently result in the user having to re-enter data again on the form, while on Before User Submit, a pop-up error message is displayed instead that can be dismissed without losing any information entered.
This trigger is valid for the following workflow actions:
Sample Usage Scenario:
Check if there is a Sales Rep assigned to the Sales Order. If none, show a pop-up message saying that is required.
Workflow Action Setup for the above Scenario:
Let us know what you think about this topic by leaving a comment or using the reaction buttons below.
-Jack