Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
Acrobat provides some built-in calculation help. I can do the Sum, Product, Average, Minimum and Maximum. When we get to Difference you'll see, well there is sort of a punch line to this. Let me set up the field so they'll do the math. Sum1 and sum2 are going to contain the data that's entered, sum3 is going to contain the total. So in the Text Field Properties, I go to the Calculate tab and I tell sum3 that it's going to be the sum of sum1 and sum2. And click Ok.
And you can already see a bit of the math taking place back here. I am going to finish most of these out and then we'll go back and check the results. Notice that I can talk to a different field without having to hit Close and exit this dialog. I can click on prod3 and now that's a field whose options I am changing. So that's going to multiply prod1 times prod2, so I tell prod3, it's going to be the product of, and I scroll down my list, prod1 and prod2, click OK. You can see it's starting to happen back there.
For the Average, the Value is the average of avg1, avg2, and avg3, click OK. Be thinking, how you might use these math operations in the kind of forms you think you are going to have to build. Minimum and maximum sort of an odd one because you can see everything in front of you and you could pick the minimum and maximum, but there may come a time when this is beneficial for you. I am going to start with minimum and I am going to tell it to examine these fields, minmax1, 2, 3, and 4.
When I close, we'll take a look at the result. Sum is working, Product is working, aren't you glad you learn your multiplication tables, and then for Average, your average is 9, 10, and 11. The Minimum and Maximum, yes it's obvious to us that 29 is the minimum, but again, this may come in handy for you later. Let's do the maximum. I am just going to modify this so that it's now the maximum of, and I still have the same fields picked, so I am ahead with that. Click Close, switch to my Hand Tool, there we go.
And you can copy little snippets and educate yourself that way. So here for my Custom calculation script, ooh, this is so impressive, I click Edit. Here's what I need to do. I need to tell Acrobat, okay I want you to look in the field diff1, store that value, then look in the field diff2 and store that value, and then address this field diff3 and subtract diff2 from diff1. So this is a bit long-winded, but you store the contents of each field and a variable. So I will say variable a=this.getField, odd little phrase, it means in this document, go get this field essentially, diff1, and in case, the name of the field in quotes and parenthesis, and then finish off the line with Semicolon.
Just to kind of revisit this, yet this is kind of wordy, but when you break it down, it's kind of rational. Hey Acrobat, find out what's in diff1 stored in variable A. Find out what's in diff2, stored in variable B, assign a variable to diff3 just so we can talk to it, and then that c.value is going to be the a.value minus the b.value. So let's see if our programming works. If you've typed something wrong, if you missed to look somehow, you'll get a little error message here, and then it's up to you to go back and sort of thresh it out.
There are currently no FAQs about Acrobat X: Creating Forms.
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.