Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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/
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now