Skip to main content
Jg655
Participant
August 24, 2023
Question

How do you auto-populate a text field and image based on the dropdown box selection?

  • August 24, 2023
  • 1 reply
  • 641 views

I'm new to Acrobat and want to auto-populate a text field and image based on the dropdown box selection. I was able to figure out how to auto-populate the text field by adding my bio description to the export value in the "name" dropdown and adding 

event.value = this.getField("Name").value;

to my bio's custom calculation script. But I can't seem to figure out how to get the image to auto-populate simultaneously with the bio Hopefully I'm making sense since I just learned this all yesterday lol.

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
August 25, 2023

Where is the image?  Is it an external file? or already imported into the document?

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Jg655
Jg655Author
Participant
August 25, 2023

Can you see a part of the pdf image?