Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Script not working as intended
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Script not working as intended

 Post Reply Post Reply
Author
jhinckley View Drop Down
New Member
New Member


Joined: 29 Dec 2011
Points: 8
Post Options Post Options   Quote jhinckley Quote  Post ReplyReply Direct Link To This Post Topic: Script not working as intended
    Posted: 25 Sep 2012 at 12:00am
When checking the AddTax checkbox, it changes the Total in the opposite way you would expect it to work. When checked, the Total is calculated as if there is no tax, and when it is not checked, the total is calculated as if there is tax added. I've used this same code in other forms, and it has worked as intended. I can't figure out why it is not working correctly in this instance.

uploads/330/Order_Form.pdf
Back to Top
BAlheit View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 1113
Post Options Post Options   Quote BAlheit Quote  Post ReplyReply Direct Link To This Post Posted: 25 Sep 2012 at 11:17am
The calculation order of the fields is incorrect:
  • Total
  • Tax
  • Subtotal
Change the order to:
  • Subtotal
  • Tax
  • Total

Back to Top
jhinckley View Drop Down
New Member
New Member


Joined: 29 Dec 2011
Points: 8
Post Options Post Options   Quote jhinckley Quote  Post ReplyReply Direct Link To This Post Posted: 26 Sep 2012 at 3:44am
The calculation script for what field?
Back to Top
aandi View Drop Down
Senior Member
Senior Member


Joined: 07 Jul 2011
Points: 18358
Post Options Post Options   Quote aandi Quote  Post ReplyReply Direct Link To This Post Posted: 26 Sep 2012 at 9:26am
Not the calculation script, the calculation ORDER.
Back to Top
jhinckley View Drop Down
New Member
New Member


Joined: 29 Dec 2011
Points: 8
Post Options Post Options   Quote jhinckley Quote  Post ReplyReply Direct Link To This Post Posted: 26 Sep 2012 at 10:52pm
Where do I change the order?
Back to Top
aandi View Drop Down
Senior Member
Senior Member


Joined: 07 Jul 2011
Points: 18358
Post Options Post Options   Quote aandi Quote  Post ReplyReply Direct Link To This Post Posted: 26 Sep 2012 at 11:00pm
Acrobat 9: enter form editing, Forms > Edit Fields > Set field calculation order.
Acrobat X: enter form editing, TASKS > Other tasks > Edit Fields > Set field calculation order.
Back to Top
jhinckley View Drop Down
New Member
New Member


Joined: 29 Dec 2011
Points: 8
Post Options Post Options   Quote jhinckley Quote  Post ReplyReply Direct Link To This Post Posted: 27 Sep 2012 at 3:18am
Thank you. It works perfectly now.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.016 seconds.