here are additional images for your references.......
# general
v
here are additional images for your references......... and below is the code snippet that I am using in this case: function BS_ValidateDuplication(type) { if(type == 'xedit') nlapiLogExecution('debug', 'beforeSubmit', type); } function AS_ShowInactives(type) { if(type == 'xedit') nlapiLogExecution('debug', 'afterSubmit', type); }