Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
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.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 74663 Viewers
80 Video lessons · 129819 Viewers
52 Video lessons · 64023 Viewers
59 Video lessons · 49813 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.