Hi All
At present i have this code
var ctrlPrice = Runner.getControl(pageid, 'CostPerHour');
var ctrlQuantity = Runner.getControl(pageid, 'AmountOfHours');
var ctrlTotal = Runner.getControl(pageid, 'Total');
var ctrlTax = Runner.getControl(pageid, 'Tax');
function func() {
ctrlTotal.setValue((+ctrlPrice.getValue()) * (+ctrlQuantity.getValue())*(+ctrlTax.getValue()/100)+((+ctrlPrice.getValue())*(+ctrlQuantity.getValue())));
};
ctrlPrice.on('keyup', func);
ctrlQuantity.on('keyup', func);
ctrlTax.on('keyup', func);
I want to include another field which will be ctrlSubTotal, so I will have two setValue, now do I make a new line of code, or is there a way I can have sometihng like ctrlTotal.setValue AND ctrlSubTotal.setValue
Thanks
paul