I have tried the OnAFterTransaction as below but both of them are triggering BEFORE the invoice is actually added. The box pops up, then when I click on the okay, it then adds the invoice. Any other suggestions? /*function FORM_OnAfterTransaction (data)
{ if (data.selectSingleNode("//_f1").text == "A") {
// for (var i = 0; i <= 99; i++) ;
window.alert ("This is where it is")
// lawForm.setFormValue("text77","",i);
} } */ Also tried:
function FORM_OnAfterTransaction(val)
{ if(val.selectSingleNode("//_f1").text=="A" && lawForm.getMessage()=="Add Complete - Continue")
{
window.alert ("This is where it is")
}
return true; |