Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PDF Scripting

New Here ,
Jul 24, 2025 Jul 24, 2025

Hi! Is it possible, depending on the number input, to either add or subtract within this one field box? For clarity, I want to either add a single number or substract a single number. Hope this makes sense. Thanks!

TOPICS
PDF
188
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jul 24, 2025 Jul 24, 2025
LATEST

 

@lynie13 Short answer yes you can. You can either have either one field, but  you must use a hidden field to store the running total and clear the visible field after each entry. This allows the visible field to act as an input prompt for the next number.

 

Or you can have two-field approach (Input Field + Result/Calculation Field) is generally more straightforward for this kind of functionality in Acrobat. The user enters a value in one field, and the other field automatically updates. You'd simply rely on the user to enter a signed number (e.g., 5 to add 5, -3 to subtract 3).

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 24, 2025 Jul 24, 2025
LATEST

 

@lynie13 Short answer yes you can. You can either have either one field, but  you must use a hidden field to store the running total and clear the visible field after each entry. This allows the visible field to act as an input prompt for the next number.

 

Or you can have two-field approach (Input Field + Result/Calculation Field) is generally more straightforward for this kind of functionality in Acrobat. The user enters a value in one field, and the other field automatically updates. You'd simply rely on the user to enter a signed number (e.g., 5 to add 5, -3 to subtract 3).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines