Forum Discussion

DeanOusterhout's avatar
DeanOusterhout
Qrew Assistant Captain
9 years ago

how to run a javascript function before saving record?

I want to execute some javascript during a save operation.  Yes, I realize that  it is not supported, but I don't know how to do what I want without using the api in javascript.


I found this code by dandiebolt_QB_Pirate, Pres. of Import Onload Sector

DoSaveAdd = (function(fn){    return function(){    //your code      var result=fn.apply(fn, arguments);      return result;    }  })(DoSaveAdd); 

but I don't know where to put it or what to hook it to?  Any ideas?
I also found this older reference but the site no longer exists... any thoughts? http://quickbase.posterous.com/a-quickbase-interposer


Thanks for the help, I am new to this as of the last couple months, but have a lot of IT experience..Dean

22 Replies