Skip to main content
Inspiring
May 7, 2017 4:52 AM UTC
Answered

Calculate script gone wrong

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 is closed to new replies. Start a new post to keep the conversation going.
janetslinkardCorrect answer
Inspiring
May 7, 2017 4:54 PM UTC

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!

6 replies

try67
Community Expert
Community Expert
May 7, 2017 7:23 AM UTC

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

Translate
Inspiring
May 7, 2017 3:08 PM UTC
try67
Community Expert
Community Expert
May 7, 2017 3:20 PM UTC

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.

Translate