Add % VAT Option - InfoPath Dev
in

InfoPath Dev

Add % VAT Option

Last post 06-10-2009 06:54 AM by kminor. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-10-2009 02:57 AM

    Add % VAT Option

    Greetings all, long time lurker first time poster.

     I have what would seem to be a simple question, I have searched and am unable to find a suitable answer!

     I have a repeating table that calculates total amounts and quantities. I have a sub total and delivery option that works all ok. What I need is a radio/option button that will automatically add the percentage of VAT to the total, any suggestions on how to do this would be greatly appreciated.

  • 06-10-2009 06:54 AM In reply to

    I'm a newbie myself, but I can think of a couple of ways to try this.  Doesn't necessarily mean they're the best ways to do it, but this is what I would try:

    1) You could add code to the OnChange event for the radio button that would add in the VAT or remove it, depending on which option was clicked.

    2) You could have a hidden field (set the width to zero) that contains the VAT.  Give it a default of 0, and include the value in that field in your total calculation.  I think you can set a rule on the radio buttons to change the value of that field when the proper option is selected.

    Hope that helps!

     

    ETA -- I prefer option 2.  I think there is less opportunity to mess up your total that way.

    -- Kelley
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.