Skip to main content
Inspiring
May 7, 2017
Answered

Calculate script gone wrong

  • May 7, 2017
  • 1 reply
  • 537 views

I've created a form that calculates tax on products but not services, and then adds a 3% credit card fee for purchases made by credit card. My problem is that it's doubling my totals whenever I switch the credit card radial buttons from yes to no or vice-versa. Can someone take a look and let me know what I'm doing wrong?

This topic has been closed for replies.
Correct answer janetslinkard

No, I did look at it, but didn't edit anything. Here's an earlier version of the file:

Statement of Goods and Services_2017_backup.pdf - Google Drive


Thank you for all your help - I believe I've got it working now. The problem was that I accidently selected the "net total" field when in the "sub total" sum calculation. Thanks again!

1 reply

try67
Community Expert
Community Expert
May 7, 2017

Sure. Share the file and/or code with us, please.

Inspiring
May 7, 2017
try67
Community Expert
Community Expert
May 7, 2017

Did you at some point edit the code that's under Edit All JavaScripts? If so, that's a mistake that can corrupt the file...

I hope you saved a copy of it before you did so. If you did, go back to it and re-create the calculations.

DO NOT attempt to edit the automatically generate code manually. Only use the built-in editors, or an external text editor for scripts.