Answered
Excel to Custom Calculation Script
How would this Excel formula translate to a custom calculation script in a PDF form?
=IF(A4<=10, 16.68,16.68+((A4-10)*1.67))
Thanks!
How would this Excel formula translate to a custom calculation script in a PDF form?
=IF(A4<=10, 16.68,16.68+((A4-10)*1.67))
Thanks!
You can use this code as the custom calculation script of your field, then:
var v = Number(this.getField("Same_Day_Miles").valueAsString);
if (v<=10) event.value = 16.68;
else event.value =16.68+((v-10)*1.67);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.