Hello,
I was following the example in the Support HTML manual for calculating a field using JavaScript,
I modified the code using my fields, but this does not seem to work
when I check to see if there are any errors on the code, it does not give me an error, not sure what else could be the issue
this is the code I am using
var ctrltmin= Runner.getControl(pageid, 'DAVIESF.COMPEMP.TIMOUT');
var ctrltmout = Runner.getControl(pageid, 'DAVIESF.COMPEMP.TIMEIN');
var ctrlTotal = Runner.getControl(pageid, 'DAVIESF.COMPEMP.TOTTIM');
function func() {
ctrlTotal.setValue(Number(ctrltmout.getValue()) - Number(ctrltmin.getValue()));
};
Any help pointing me in the right direction is much appreciated
thanks!!!