OpenWGA 7.10 - JavaScript reference

WGA
Method :

WGA.b4submit.register(fn)

On object WGA
Usage Register a function to be called before an HTML form is submitted
Description The given method is called with the HTML form element as single parameter. It may return "false" to cancel the submit.
Parameters

fn (JavaScript function):

A function to be called on submit