From the course: Acrobat DC: Creating Forms
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Create simple JavaScript calculations
From the course: Acrobat DC: Creating Forms
Create simple JavaScript calculations
- [Instructor] All right, so we have two more fields to calculate for this form, we have to figure out how to calculate this 6% sales tax and then tally everything up for the grand total. To calculate the 6% sales tax, we could create a hidden field like we did for the price fields up here and give it a value of 0.06 and have that field multiplied by the subtotal to arrive at our tax. But I already showed you how to do an invisible field and multiply that, so let's take a look at a different way to arrive at this tax total. And this time, I'm going to show you how to do a JavaScript calculation. JavaScript is a language that's mainly used to enhance web pages, but if you're familiar with some basic JavaScript, you can really make Acrobat do some neat and more advanced things. So let me show you how this works, and if you don't know JavaScript, don't worry. I'm going to show you everything you need to do. I'm going to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.