I'm sure I just need to learn Adobe javascript basics. But, perhaps if someone could apply the appropriate syntax to the following if/then calculation, it would go a long way toward helping me grasp the basic concept. (I had to strip out all formatting I had managed to figure out in order to get this message to post.)
This is for a Custom Calculation Script where data entered into another Text Field (called "YearsWithCarrier") controls what appears in the field this calculation is defined in - lets call it Percentage. Depending on what is entered into YearsWithCarrier, Percentage displays either 10, 12.5 or 15. This result will then be used to calculate the value that appears in yet another field.
I know I need to define a variable and the value property. And the javascript formatting needs to be added back into the formula. Thank you for your assistance.
If YearsWithCarrier is less than 3, then enter "10". Else, if YearsWithCarrier is greater than 4 then enter "15". Else, enter "12.5".
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com