Is there a way to create an audit trail entry every time a "Warning" Validation Trigger is ignored on UI Pages. When a Validation Warning is displayed and the user chooses to "Ignore Warning", we want to make a note in the record's audit trail (e.g. "User XYZ was displayed warning message pertaining to Amount Paid and choose to proceed anyway"). Any ideas? Thanks, Mike
Suppose you have validation trigger
if (cond) return "Warning";
You can create a second trigger, run it on update/create, and evaluate the same condition (as in validation trigger) again:
if (cond) createActivityLog();
Works great. Thanks.