Custom Calculation Script for PDF Form
Hello,
I have no javascript experience at all; however, I learned by searching on the internet that I need to create a Custom Calculation Script on my .pdf form to get it to do what I want. I researched and attempted it myself and was unsuccessful.
I have four fields created that are named:
- NumofCriteriaMet
- TotalNumofCriteria
- PercentofCriteriaMet
- CPRatingScore
Currently, I have a simplified field notation (division) in the PercentofCriteriaMet as follows: NumofCriteriaMet/TotalNumofCriteria
and it is working.
What I am trying to do is take the number auto-populated from PercentofCriteriaMet and assign a value based on the range below and have the value auto-populated in CPRatingScore
0.0 to 0.59 = 0
0.60 - 0.89 = 1
0.90 - 1.00 = 2
Also, I don't know if it makes a difference, but I currently have the PercentofCriteriaMet and CPRatingScore field set to "read only"
If anyone can assist in helping me create a working Custom calculation script, it would be much appreciated.
Shelly ![]()
