Question
How to calculate the sum of several cells in fillable form?
Answer
To calculate the sum of several numbers in the fillable form follow the steps below:
- Open the file in PDF Editor.
- Create a fillable form or click on Form Editor tab in the menu bar.
- Add the button for the calculation of the sum:
For example:
- Trigger event can be set as Click;
- Action as Run JavaScript;
- In the field for the script, the following action can be used:
getField("TextField 3").value = getField("TextField 1").value + getField("TextField 2").value
4. Enter the script, click Save, and then Ok.
5. Go back to the Document tab.
6. Click the Sum button to receive the sum number.