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

Dynamic addition of image fields in PDF form? (Acrobat Pro DC)

Participant ,
Jan 17, 2018 Jan 17, 2018

Hey everyone,

For a form where an inspector inspects a building, I'd like to have a variable amount of image fields the user can put images into. However, depending on the building and exceptions for the task at hand, It'll vary per building how many image fields will be required in the form.

I've found the Forms image field excellent for images in general, so I'm planning to use that. However, I'd like to be able to dynamically add these image fields with say, the press of a button. Ideally with a + button to add an image field, and a - button to remove the last image field.

Is this possible?

TOPICS
Acrobat SDK and JavaScript , Windows
1.8K
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

correct answers 1 Correct answer

LEGEND , Jan 19, 2018 Jan 19, 2018

In that case template spawning won't work, but you can show/hide fields.

Translate
LEGEND ,
Jan 17, 2018 Jan 17, 2018

You can use the templates feature to dynamically add new pages to a document. Such a template could include one or more button fields (aka image fields) that are used to display images. It's possible to show previously hidden image fields, but this seems unnecessarily complicated. You could add a script to an image button allowing the user to hide it if it won't be used.

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 ,
Jan 17, 2018 Jan 17, 2018

On what kind of device will this form be used?  There aren't many good solutions for this on a mobile device, unless that device is a full Mac or Windows tablet. 

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
Participant ,
Jan 19, 2018 Jan 19, 2018

It'll be used on pdfExpert6 on mainly modern Ipads

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
LEGEND ,
Jan 19, 2018 Jan 19, 2018
LATEST

In that case template spawning won't work, but you can show/hide fields.

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