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

Choice 1 of Box A populates Box B, Choice 2 of Box A allows user to type value

Community Beginner ,
Oct 28, 2025 Oct 28, 2025

Hi,

I am trying to have a Box (Box B) populate based on the choices from Box A.  But it would be a combination of an autopopulated value or a value that the user types in (not sure if that is possible).

 

Box A has two choices "Average Market Value" & "Purchase Price" that the user chooses

 

If the user chooses Average Market Value in Box A

--Other fields visibly appear and are user-populated (SourceName1, Val1Amt, SourceName2, Val2Amt, & avgVal)

--Box B is ultimately auto-populated based on one of these fields ("avgVal")

But, if user chooses Purchase Price in Box A, 

--Fields are hidden (SourceName1, Val1Amt, SourceName2, Val2Amt, & avgVal)

--User can type a value into Box B 

 

Is this possible or should I separate Box B into different fields?

 

Thank you for any ideas on this one!

Leslie

TOPICS
JavaScript , PDF forms
63
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 ,
Oct 28, 2025 Oct 28, 2025

This is possible to implement with a script.  So the form will work as long as the viewer the used to display the PDF supports field scripts, which means the desktop Acrobat/Reader. 

 

I'm assuming that by "box" you mean a dropdown selection list. This functionality is requested frequently and you'll find lots of info on this forum.  Search on dependent  dropdown.   

 

You'll also find info and examples here:

https://www.pdfscripting.com/public/Hiding-and-Showing-Form-Fields.cfm 

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

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 Beginner ,
Oct 29, 2025 Oct 29, 2025

Thank you, Thom.  I wasn't sure if I could combine an auto populate option with text entry option in the same field (based on the value chosen in another field).  I will look through the examples you provided for this kind of combination.

Thank you!

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 ,
Oct 29, 2025 Oct 29, 2025
LATEST

Just to be clear,  at any particular time, Box B is either autopopulated or manual entry. It can't be both at the same time, but it can be dynamically switched using the method you've outlined.   

 

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

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