I have the code, I can't figure out how to write in a text field in Adobe.

I want to find if a number is within a certain range, if it is within this range, I want to assign a field a certain percentage.

Here is the code:

Define Vars

var TotalScore = this.getField("Total_Scores").value;

var HighA = this.getField("Range_2").value;

var LowA = this.getField("Range_1").value;

var HighB = this.getField("Range_4").value;

var LowB = this.getField("Range_3").value;

var HighC = this.getField("Range_6").value;

var LowC = this.getField("Range_5").value;

var HighD = this.getField("Range_8").value;

var LowD = this.getField("Range_7").value;

It's the increase

var rate1 = this.getField("Salary_1").value;

var naturel2 = this.getField("Salary_2").value;

var revenu3 = this.getField("Salary_3").value;

var mensuel4 = this.getField("Salary_4").value;

That's where the value of end will go

var IncreasePer = this.getField("Increase_Per").value;

If statement

If (TotalScore > = LowA & & TotalScore < = HighA) {}

IncreasePer.value = rate1;

}

If (TotalScore > = LowB & & TotalScore < = HighB) {}

IncreasePer.value = naturel2;

}

If (TotalScore > = LowC & & TotalScore < = HighC) {}

IncreasePer.value = revenu3;

}

If (TotalScore > = LowD & & TotalScore < = HighD) {}

IncreasePer.value = revenues4;

}

I'm doing a form of merit increase where the overall rating of the employee puts into 1 of 4 categories. The percentages are just random numbers that we came with to test the form.

De To % of stimulus
40505.0
30392.5
20291.0
10190
090

Any help or Insight is appreciated!

Change this line:

var IncreasePer = this.getField("Increase_Per").value;

To do this:

var IncreasePer = this.getField ("Increase_Per");

Tags: Acrobat

Similar Questions

Maybe you are looking for