If we have to use the same function across forms in forms2, currently there is no way to achieve that.
A file called
'helper.js' stores the common methods in a window object
This file gets loaded on the load of consultation page, we can then use these global methods in any form/control event
Have a button on Implementer interface to add content to the file, the editor will have option to export or import this file.