I am on build 38040.
I have sucessfully setup a calculation on the fly in an add page, javasscript onload event, as per below example method.
var ctrlPrice = Runner.getControl(pageid, 'Price');
var ctrlQuantity = Runner.getControl(pageid, 'Quantity');
var ctrlTotal = Runner.getControl(pageid, 'Total');
function func() {
ctrlTotal.setValue(Number(ctrlPrice.getValue()) * Number(ctrlQuantity.getValue()));
};
ctrlPrice.on('keyup', func);
ctrlQuantity.on('keyup', func);
I want to setup a second calculation in this page using different fields and a second function with appropriate var ctrlNEW=Runner.getControl(pageid, 'NEW') statements, appropriate math in function funcNEW(), and ctrlNEW.on('keyup',func); statements.
The second function/calculation does not trigger like the first.
How can i include 2 functions in the onload event?