How to create calculation form fields
Applies to:
- Revu 21
- Revu 20
In Revu, you can create form fields that support simple calculation formulas. In this article, we cover how to set up simple calculation fields for your PDF forms.
Add calculation fields to forms
In the Form Properties panel, the Calculate property of a form field is set to Value is Not Calculated by default. You can change this property to Calculation Field to generate sums (+), products (x), averages, minimums, and maximums from form input.
A common calculation is Quantity x Price = Total. To create these calculation fields for your form, follow these steps:
- Open a new PDF or an existing form in Revu.
- Go to Tools > Form > Text Box.
- Click-and-drag a text box on your PDF form.
- Repeat steps 2 and 3 to create three text boxes total.
- From the Forms panel (Alt+Q), change the name of the first text box (Text1) to Quantity.You can also right-click the first text box and select Properties to update the name from the Form Field Properties panel.
- Rename the second text box (Text2) as Price.
- Rename the third text box (Text3) as Total.
- Right-click the Total field on the PDF form.
- Select Properties.
- In the Form Field Properties panel, scroll down to Calculate.
- From the first dropdown, select Calculation field.
- Choose product (x) from the second dropdown.
- Click Select.
- Select both Quantity and Price.
- Click OK.
Now, when numerical values are entered in the Quantity and Price form fields, the Total will automatically calculate. To learn more about using advanced formulas, JavaScript, and/or scripts with your calculation form fields, see this article.
How-To
Revu 21
Revu 20
PDF Forms