That's what I've tried and it doesn't seem to be w...
# suitescript
m
That's what I've tried and it doesn't seem to be working. My current example code:
Copy code
/**
 * @NApiVersion 2.x
 * @NScriptType ClientScript
 */

define([],function() {
	function pageInitTest(context) {
		console.log('Start page init');
	}
	
	function testFunction(options) {
		console.log('Start test function');
	}
	
	return {
		'pageInit':pageInitTest,
		'testFunction':testFunction
	};
});
Notably, the pageInit is also not firing.