Skip to main content
Inspiring
Jan 22, 2025 11:42 AM UTC
Answered

ADDING KILOGRAM TO NUMBER AND STILL ADD OR SUBTRACT THE NUMBERS

I want to add kilogram to numbers and still add or subtract the numbers in acrobat forms.
I believe that should be pretty simple for a professional.

let's say "text1, test2 test3, etc" are to be added or multiplied and add the total value in the text field "Total". 

I really appreciate any help you can provide.

Many thanks for considering my request.

 

PDF Automation Station
Community Expert
Jan 22, 2025 11:50 AM UTC

Enter the following custom format script in the total field:

event.value=event.value + " kg";

If you also want the total field formatted as a number you will have to enter the script for the number format, the custom format script, and the keystroke script into the field.

https://pdfautomationstation.substack.com/p/custom-format-for-pdf-fields

 

1 reply

PDF Automation Station
Community Expert
Community Expert
Jan 22, 2025 11:50 AM UTC

Enter the following custom format script in the total field:

event.value=event.value + " kg";

If you also want the total field formatted as a number you will have to enter the script for the number format, the custom format script, and the keystroke script into the field.

https://pdfautomationstation.substack.com/p/custom-format-for-pdf-fields

 

Translate