Skip to main content
Participating Frequently
Oct 28, 2025 8:54 PM UTC
Question

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

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

3 replies

Thom Parker
Community Expert
Community Expert
Oct 28, 2025 9:10 PM UTC

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/

 

 

 

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participating Frequently
Oct 29, 2025 9:00 PM UTC

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
Thom Parker
Community Expert
Community Expert
Oct 29, 2025 9:09 PM UTC

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.   

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often