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

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

New Here ,
Aug 24, 2023 Aug 24, 2023

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.
Screenshot 2023-08-24 at 9.42.01 AM.png

TOPICS
How to , JavaScript , PDF , PDF forms
465
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 ,
Aug 25, 2023 Aug 25, 2023

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

 

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
New Here ,
Aug 25, 2023 Aug 25, 2023
LATEST

Jg655_0-1692998537055.png

Can you see a part of the pdf image?

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