Custom Calculation on a form
I am trying to write a custom calculation that adds 3 percent to a specified total when over 500 dollars if a credit card number appears in a field at the bottom of the form
I am trying to write a custom calculation that adds 3 percent to a specified total when over 500 dollars if a credit card number appears in a field at the bottom of the form
here is the scenario
total before freight
freight
total with freight
grand total
The grand total should be the total with a 3% up charge if the credit card field at the bottom of the form is complete
if not complete then should display same as total w freight
OK. Let's say the name of the CC field is "CC". In that case, use this code as the custom calculation script of "Grand total".
var total = Number(this.getField("total with freight").valueAsString);
if (this.getField("CC").valueAsString=="") event.value = total;
else event.value = total * 1.03;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.