Help with adding tax calculation

Viewing 2 reply threads
  • Author
    Posts
  • April 25, 2015 at 6:17 PM #13471

    Jason Bartley
    Participant

    Is there a way using a check box to trigger or add to a calculation?
    Any suggestion on how accomplish this?

    I am building a purchase order form that needs to have sales tax option. I would like it to where I would select check box to add a calculation of sales tax to a total value. If the order was untaxable, I could leave the box uncheck and let total add up as a running total.

    April 25, 2015 at 6:59 PM #13472

    Brendan
    Keymaster

    Hi Jason,

    You bet. All you need to do is multiply your tax amount that you’re adding by the value of your checkmark field. If a checkmark field is ON, then the value is 1. If it’s off, the value is 0.

    So for example:

    [Product Price] + [Product Price] * [Tax Amount] * [Apply Tax]

    So if the value of the Apply Tax checkmark field is 0, then no tax would be applied. And if it is taxable, then the value of Apply Tax will be 1.

    Hope that helps!

    Brendan

    April 25, 2015 at 9:46 PM #13474

    Jason Bartley
    Participant

    Thanks! Works like a charm. I come from a FileMaker Pro background, so I was overthinking the calculation. I just need to get a better handle on tapforms calculation syntax.

Viewing 2 reply threads

You must be logged in to reply to this topic.