Script not returning expected values
I'm using Adobe Acrobat Pro,
Build: 23.3.20284.0
Experts, I'm struggling with the following script. In a PDF form, I'm trying to return the correct value to athe current field, baseHMONetTotal. The below does not return the value of i or t, it only returns the default value of 0.
// Get the values of the sumBaseHMOValue and baseHMOMOOP1 fields
var i = this.getField("sumBaseHMOValue").value;
var t = this.getField("baseHMOMOOP1").value;
var result = this.getField("bHMONetTotal").value;
// Compare i with t values
if (i > t) {
result.value = t; }
else if (i < t) {
result.value = i; }
