Answered
I know this may sound like a dumb question but I have this code under calculate:
var a = get.thisField("fldYesYellowEnvelope").value;
var b = get.thisField("fldYesWhiteEnvelope").value;
var c = get.thisField("fldCurrentPVBMCount").value;
event.value = a + b + c;
This is a numeric field.
I'm completely stumped as to why it wont auto calculate.
var a = +getField("fldYesYellowEnvelope").value;
var b = +getField("fldYesWhiteEnvelope").value;
var c = +getField("fldCurrentPVBMCount").value;
event.value = a + b + c;
or better yet:
(function () {
var a = +getField("fldYesYellowEnvelope").value;
var b = +getField("fldYesWhiteEnvelope").value;
var c = +getField("fldCurrentPVBMCount").value;
event.value = a + b + c;
})();
...to prevent the unnecessary creation of document-global variables.