How to calculate the sum of several cells in fillable form?

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:

  1. Open the file in PDF Editor.
  2. Create a fillable form or click on Form Editor tab in the menu bar.
  3. 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.

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.