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

populate different text fields with same value based on single dropdown

New Here ,
Jan 29, 2018 Jan 29, 2018

Copy link to clipboard

Copied

I'm preparing a form with some custom calculations in Adobe Acrobat Pro DC and I'm fairly new to javascript, especially concerning form PDFs.

I have a single dropdown with three values (A, B, C) and six numeric fields (1, 2, 3, 4, 5, 6). The dropdown's default value is null and each field's default value is 0. When the dropdown = A, I'd like 1 and 4 to auto-populate with "25";

dropdown = B, 2 and 5 auto-populate with 20;

dropdown = C, 3 and 6 auto-populate with 15.

What kind of functions should I use to achieve this, and where do I put the script?

Thank you!

TOPICS
Acrobat SDK and JavaScript , Windows

Views

339

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jan 29, 2018 Jan 29, 2018

Read these two articles, they explain everything you need to know about dropdown/list fields:

https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

https://acrobatusers.com/tutorials/change_another_field

Votes

Translate

Translate
Community Expert ,
Jan 29, 2018 Jan 29, 2018

Copy link to clipboard

Copied

LATEST

Read these two articles, they explain everything you need to know about dropdown/list fields:

https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

https://acrobatusers.com/tutorials/change_another_field

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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