Ready to watch this entire course?
Become a member and get unlimited access to the entire skills library of over 4,987 courses, including more Business and personalized recommendations.Start Your Free Trial Now
- View Offline
In this form there is some secret math going on behind the scenes. If I order two of something that costs $15, my line total takes care of itself, notice the sales tax and the grand total. So I don't have to figure that out, somehow Acrobat is figuring it out for me. So there's my sales tax again. So let's see what I mean when I say there is hidden mask going on behind the scenes. When I choose my Select Object Tool, you can see that there is a hidden field here, let's see what job that hidden field has.
Then I'm going to identify this text field by saying variable b=this.getField("tax"), and here comes the math. The b.value, the value of this field equals, here comes the math, the a.value, whatever it found in subtotal times multiply by using asterisk the tax which is going to be 6% so that's .06, close the parenthesis and put on a Semicolon to finish it off.
So I'll OK, Close Form Editing, and then let's try it out and see if it works. So two of something that costs $15, there is my subtotal and then there is my Sales Tax. So three of something that costs $13. 29 just to make it a little more complex and Sales Tax figures itself out and so does the grand total. So the calculations are taking place in order, my Sales Tax field is working correctly, I can check that my subtotal is fine, now I can hide it. So I'm going to get my Selection Tool, double-click on Subtotal, go back to General, and now I can hide that little guy, but he can still do his job.
- Designing forms in multiple applications
- Creating and editing fields
- Using auto-recognition
- Adding buttons and check boxes
- Creating and adding artwork
- Performing math in a form
- Creating an order form
- Securing forms with passwords and digital signatures
- Distributing forms via email or Acrobat.com