Create audit trail entry every time a validation trigger war

Posted by Rollbase User on 26-Jun-2012 21:28

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

All Replies

Posted by Admin on 26-Jun-2012 21:40

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();

Posted by Admin on 26-Jun-2012 22:12

Works great. Thanks.

This thread is closed